{"modulePath":"github.com/cockroachdb/cockroachdb-parser","version":"v0.25.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sessiondatapb\n\n## Constants\n\n```go\nconst (\n\t// SystemLow denotes the minimum system QoS level, which is not settable as a\n\t// session default_transaction_quality_of_service value.\n\tSystemLow = QoSLevel(admissionpb.LowPri)\n\n\t// BulkLow denotes a QoS level used internally by the bulk operations (like\n\t// LDR ingestion and TTL), which is not settable as a session\n\t// default_transaction_quality_of_service value.\n\tBulkLow = QoSLevel(admissionpb.BulkLowPri)\n\n\t// UserLow denotes an end user QoS level lower than the default.\n\tUserLow = QoSLevel(admissionpb.UserLowPri)\n\n\t// Normal denotes an end user QoS level unchanged from the default.\n\tNormal = QoSLevel(admissionpb.NormalPri)\n\n\t// LockingNormal denotes an internal increased priority for normal\n\t// transactions that are acquiring locks.\n\tLockingNormal = QoSLevel(admissionpb.LockingNormalPri)\n\n\t// UserHigh denotes an end user QoS level higher than the default.\n\tUserHigh = QoSLevel(admissionpb.UserHighPri)\n\n\t// LockingHigh denotes an internal increased priority for UserHigh\n\t// transactions that are acquiring locks.\n\tLockingHigh = QoSLevel(admissionpb.LockingUserHighPri)\n\n\t// SystemHigh denotes the maximum system QoS level, which is not settable as a\n\t// session default_transaction_quality_of_service value.\n\tSystemHigh = QoSLevel(admissionpb.HighPri)\n)\n```\n\n```go\nconst (\n\t// NormalName is the external session setting string value to use to mean\n\t// Normal QoS level.\n\tNormalName = \"regular\"\n\n\t// UserHighName is the external session setting string value to use to mean\n\t// UserHigh QoS level.\n\tUserHighName = \"critical\"\n\n\t// UserLowName is the external session setting string value to use to mean\n\t// UserLow QoS level.\n\tUserLowName = \"background\"\n\n\t// SystemHighName is the string value to display indicating a SystemHigh\n\t// QoS level.\n\tSystemHighName = \"maximum\"\n\n\t// SystemLowName is the string value to display indicating a SystemLow\n\t// QoS level.\n\tSystemLowName = \"minimum\"\n\n\t// BulkLowName is the string value to display indicating a BulkLow QoS level.\n\tBulkLowName = \"bulk_low\"\n\n\t// LockingNormalName is the string value to display indicating a\n\t// LockingNormal QoS level.\n\tLockingNormalName = \"locking-normal\"\n\n\t// LockingHighName is the string value to display indicating a LockingHigh\n\t// QoS level.\n\tLockingHighName = \"locking-high\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tSystemLowQoS = SystemLow\n\tBulkLowQoS   = BulkLow\n\tUserLowQoS   = UserLow\n)\n```\nWhen providing SessionData overrides to the internal executor, we need to use pointers to specify the QoSLevel. Since we can't use pointers to constants, we define these variables to use in those cases.\n\n```go\nvar (\n\tErrInvalidLengthLocalOnlySessionData        = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowLocalOnlySessionData          = fmt.Errorf(\"proto: integer overflow\")\n\tErrUnexpectedEndOfGroupLocalOnlySessionData = fmt.Errorf(\"proto: unexpected end of group\")\n)\n```\n\n```go\nvar (\n\tErrInvalidLengthSessionData        = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowSessionData          = fmt.Errorf(\"proto: integer overflow\")\n\tErrUnexpectedEndOfGroupSessionData = fmt.Errorf(\"proto: unexpected end of group\")\n)\n```\n\n```go\nvar (\n\tErrInvalidLengthSessionMigration        = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowSessionMigration          = fmt.Errorf(\"proto: integer overflow\")\n\tErrUnexpectedEndOfGroupSessionMigration = fmt.Errorf(\"proto: unexpected end of group\")\n)\n```\n\n```go\nvar (\n\tErrInvalidLengthSessionRevivalToken        = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowSessionRevivalToken          = fmt.Errorf(\"proto: integer overflow\")\n\tErrUnexpectedEndOfGroupSessionRevivalToken = fmt.Errorf(\"proto: unexpected end of group\")\n)\n```\n\n```go\nvar PlanCacheMode_name = map[int32]string{\n\t0: \"force_custom_plan\",\n\t1: \"force_generic_plan\",\n\t2: \"auto\",\n}\n```\n\n```go\nvar PlanCacheMode_value = map[string]int32{\n\t\"force_custom_plan\":  0,\n\t\"force_generic_plan\": 1,\n\t\"auto\":               2,\n}\n```\n\n```go\nvar ReplicationMode_name = map[int32]string{\n\t0: \"REPLICATION_MODE_DISABLED\",\n\t1: \"REPLICATION_MODE_ENABLED\",\n\t2: \"REPLICATION_MODE_DATABASE\",\n}\n```\n\n```go\nvar ReplicationMode_value = map[string]int32{\n\t\"REPLICATION_MODE_DISABLED\": 0,\n\t\"REPLICATION_MODE_ENABLED\":  1,\n\t\"REPLICATION_MODE_DATABASE\": 2,\n}\n```\n\n```go\nvar VectorizeExecMode_name = map[int32]string{\n\t0: \"unset\",\n\t1: \"deprecated201auto\",\n\t2: \"on\",\n\t3: \"experimental_always\",\n\t4: \"off\",\n}\n```\n\n```go\nvar VectorizeExecMode_value = map[string]int32{\n\t\"unset\":               0,\n\t\"deprecated201auto\":   1,\n\t\"on\":                  2,\n\t\"experimental_always\": 3,\n\t\"off\":                 4,\n}\n```\n\n## Functions\n\n```go\nfunc ToQoSLevelString(value int32) string\n```\nToQoSLevelString interprets an int32 value as a QoSLevel and returns its String representation.\n\n## Types\n\n```go\ntype DataConversionConfig struct {\n\t// BytesEncodeFormat indicates how to encode byte arrays when converting to\n\t// string.\n\tBytesEncodeFormat lex.BytesEncodeFormat `protobuf:\"varint,1,opt,name=bytes_encode_format,json=bytesEncodeFormat,proto3,enum=cockroach.sql.sessiondatapb.BytesEncodeFormat\" json:\"bytes_encode_format,omitempty\"`\n\t// ExtraFloatDigits indicates the number of digits beyond the standard number\n\t// to use for float conversions.This must be set to a value between -15 and\n\t// 3, inclusive.\n\tExtraFloatDigits int32 `protobuf:\"varint,2,opt,name=extra_float_digits,json=extraFloatDigits,proto3\" json:\"extra_float_digits,omitempty\"`\n\t// IntervalStyle indicates the style to parse and display intervals as.\n\tIntervalStyle duration.IntervalStyle `protobuf:\"varint,3,opt,name=interval_style,json=intervalStyle,proto3,enum=cockroach.util.duration.IntervalStyle\" json:\"interval_style,omitempty\"`\n\t// DateStyle indicates the style to parse and display dates as.\n\tDateStyle pgdate.DateStyle `protobuf:\"bytes,4,opt,name=date_style,json=dateStyle,proto3\" json:\"date_style\"`\n}\n```\nDataConversionConfig contains the parameters that influence the output of certain data types as strings or bytes.\n\n```go\nfunc (*DataConversionConfig) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (c DataConversionConfig) GetFloatPrec(typ *types.T) int\n```\nGetFloatPrec computes a precision suitable for a call to strconv.FormatFloat() or for use with '%.\\*g' in a printf-like function.\n\n```go\nfunc (m *DataConversionConfig) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *DataConversionConfig) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *DataConversionConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*DataConversionConfig) ProtoMessage()\n```\n\n```go\nfunc (m *DataConversionConfig) Reset()\n```\n\n```go\nfunc (m *DataConversionConfig) Size() (n int)\n```\n\n```go\nfunc (m *DataConversionConfig) String() string\n```\n\n```go\nfunc (m *DataConversionConfig) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *DataConversionConfig) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *DataConversionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *DataConversionConfig) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *DataConversionConfig) XXX_Size() int\n```\n\n```go\nfunc (m *DataConversionConfig) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype DescriptorValidationMode int64\n```\nDescriptorValidationMode controls if and when descriptors are validated.\n\n```go\nconst (\n\t// DescriptorValidationOn means that we always validate descriptors,\n\t// both when reading from storage and when writing to storage.\n\tDescriptorValidationOn DescriptorValidationMode = iota\n\t// DescriptorValidationOff means that we never validate descriptors.\n\tDescriptorValidationOff\n\t// DescriptorValidationReadOnly means that we validate descriptors when\n\t// reading from storage, but not when writing to storage.\n\tDescriptorValidationReadOnly\n)\n```\n\n```go\nfunc DescriptorValidationModeFromString(val string) (_ DescriptorValidationMode, ok bool)\n```\nDescriptorValidationModeFromString converts a string into a DescriptorValidationMode.\n\n```go\nfunc (m DescriptorValidationMode) String() string\n```\n\n```go\ntype DistSQLExecMode int64\n```\nDistSQLExecMode controls if and when the Executor distributes queries. Since 2.1, we run everything through the DistSQL infrastructure, and these settings control whether to use a distributed plan, or use a plan that only involves local DistSQL processors.\n\n```go\nconst (\n\t// DistSQLOff means that we never distribute queries.\n\tDistSQLOff DistSQLExecMode = iota\n\t// DistSQLAuto means that we automatically decide on a case-by-case basis if\n\t// we distribute queries.\n\tDistSQLAuto\n\t// DistSQLOn means that we distribute queries that are supported.\n\tDistSQLOn\n\t// DistSQLAlways means that we only distribute; unsupported queries fail.\n\tDistSQLAlways\n)\n```\n\n```go\nfunc DistSQLExecModeFromString(val string) (_ DistSQLExecMode, ok bool)\n```\nDistSQLExecModeFromString converts a string into a DistSQLExecMode\n\n```go\nfunc (m DistSQLExecMode) String() string\n```\n\n```go\ntype ExperimentalDistSQLPlanningMode int64\n```\nExperimentalDistSQLPlanningMode controls if and when the opt-driven DistSQL planning is used to create physical plans.\n\n```go\nconst (\n\t// ExperimentalDistSQLPlanningOff means that we always use the old path of\n\t// going from opt.Expr to planNodes and then to processor specs.\n\tExperimentalDistSQLPlanningOff ExperimentalDistSQLPlanningMode = iota\n\t// ExperimentalDistSQLPlanningOn means that we will attempt to use the new\n\t// path for performing DistSQL planning in the optimizer, and if that\n\t// doesn't succeed for some reason, we will fallback to the old path.\n\tExperimentalDistSQLPlanningOn\n\t// ExperimentalDistSQLPlanningAlways means that we will only use the new path,\n\t// and if it fails for any reason, the query will fail as well.\n\tExperimentalDistSQLPlanningAlways\n)\n```\n\n```go\nfunc ExperimentalDistSQLPlanningModeFromString(val string) (ExperimentalDistSQLPlanningMode, bool)\n```\nExperimentalDistSQLPlanningModeFromString converts a string into a ExperimentalDistSQLPlanningMode. False is returned if the conversion was unsuccessful.\n\n```go\nfunc (m ExperimentalDistSQLPlanningMode) String() string\n```\n\n```go\ntype LocalOnlySessionData struct {\n\t// SaveTablesPrefix indicates that a table should be created with the\n\t// given prefix for the output of each subexpression in a query. If\n\t// SaveTablesPrefix is empty, no tables are created.\n\tSaveTablesPrefix string `protobuf:\"bytes,1,opt,name=save_tables_prefix,json=saveTablesPrefix,proto3\" json:\"save_tables_prefix,omitempty\"`\n\t// OptimizerFKCascadesLimit is the maximum number of cascading operations that\n\t// are run for a single query.\n\tOptimizerFKCascadesLimit int64 `protobuf:\"varint,2,opt,name=optimizer_fk_cascades_limit,json=optimizerFkCascadesLimit,proto3\" json:\"optimizer_fk_cascades_limit,omitempty\"`\n\t// StmtTimeout is the duration a query is permitted to run before it is\n\t// canceled by the session. If set to 0, there is no timeout.\n\tStmtTimeout time.Duration `protobuf:\"varint,3,opt,name=stmt_timeout,json=stmtTimeout,proto3,casttype=time.Duration\" json:\"stmt_timeout,omitempty\"`\n\t// IdleInSessionTimeout is the duration a session is permitted to idle before\n\t// the session is canceled. If set to 0, there is no timeout.\n\tIdleInSessionTimeout time.Duration `protobuf:\"varint,4,opt,name=idle_in_session_timeout,json=idleInSessionTimeout,proto3,casttype=time.Duration\" json:\"idle_in_session_timeout,omitempty\"`\n\t// IdleInTransactionSessionTimeout is the duration a session is permitted to\n\t// idle in a transaction before the session is canceled.\n\t// If set to 0, there is no timeout.\n\tIdleInTransactionSessionTimeout time.Duration `protobuf:\"varint,5,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3,casttype=time.Duration\" json:\"idle_in_transaction_session_timeout,omitempty\"`\n\t// NoticeDisplaySeverity indicates the level of Severity to send notices for the given\n\t// session. This should ideally be of type pgnotice.DisplaySeverity, but cannot be done\n\t// due to a circular dependency.\n\tNoticeDisplaySeverity uint32 `protobuf:\"varint,6,opt,name=notice_display_severity,json=noticeDisplaySeverity,proto3\" json:\"notice_display_severity,omitempty\"`\n\t// ReorderJoinsLimit indicates the number of joins at which the optimizer should\n\t// stop attempting to reorder.\n\tReorderJoinsLimit int64 `protobuf:\"varint,7,opt,name=reorder_joins_limit,json=reorderJoinsLimit,proto3\" json:\"reorder_joins_limit,omitempty\"`\n\t// DefaultTxnPriority indicates the default priority of newly created\n\t// transactions.\n\t// NOTE: we'd prefer to use tree.UserPriority here, but doing so would\n\t// introduce a package dependency cycle.\n\tDefaultTxnPriority int64 `protobuf:\"varint,8,opt,name=default_txn_priority,json=defaultTxnPriority,proto3\" json:\"default_txn_priority,omitempty\"`\n\t// DefaultTxnReadOnly indicates the default read-only status of newly\n\t// created transactions.\n\tDefaultTxnReadOnly bool `protobuf:\"varint,9,opt,name=default_txn_read_only,json=defaultTxnReadOnly,proto3\" json:\"default_txn_read_only,omitempty\"`\n\t// DefaultTxnUseFollowerReads indicates whether transactions should be\n\t// created by default using an AS OF SYSTEM TIME clause far enough in the\n\t// past to facilitate reads against followers. If true, transactions will\n\t// also default to being read-only.\n\tDefaultTxnUseFollowerReads bool `protobuf:\"varint,10,opt,name=default_txn_use_follower_reads,json=defaultTxnUseFollowerReads,proto3\" json:\"default_txn_use_follower_reads,omitempty\"`\n\t// PartiallyDistributedPlansDisabled indicates whether the partially\n\t// distributed plans produced by distSQLSpecExecFactory are disabled. It\n\t// should be set to 'true' only in tests that verify that the old and the\n\t// new factories return exactly the same physical plans.\n\t// TODO(yuzefovich): remove it when deleting old sql.execFactory.\n\tPartiallyDistributedPlansDisabled bool `protobuf:\"varint,11,opt,name=partially_distributed_plans_disabled,json=partiallyDistributedPlansDisabled,proto3\" json:\"partially_distributed_plans_disabled,omitempty\"`\n\t// OptimizerUseHistograms indicates whether we should use histograms for\n\t// cardinality estimation in the optimizer.\n\tOptimizerUseHistograms bool `protobuf:\"varint,12,opt,name=optimizer_use_histograms,json=optimizerUseHistograms,proto3\" json:\"optimizer_use_histograms,omitempty\"`\n\t// OptimizerUseMultiColStats indicates whether we should use multi-column\n\t// statistics for cardinality estimation in the optimizer.\n\tOptimizerUseMultiColStats bool `protobuf:\"varint,13,opt,name=optimizer_use_multi_col_stats,json=optimizerUseMultiColStats,proto3\" json:\"optimizer_use_multi_col_stats,omitempty\"`\n\t// LocalityOptimizedSearch indicates that the optimizer will try to plan scans\n\t// and lookup joins in which local nodes (i.e., nodes in the gateway region)\n\t// are searched for matching rows before remote nodes, in the hope that the\n\t// execution engine can avoid visiting remote nodes.\n\tLocalityOptimizedSearch bool `protobuf:\"varint,14,opt,name=locality_optimized_search,json=localityOptimizedSearch,proto3\" json:\"locality_optimized_search,omitempty\"`\n\t// SafeUpdates causes errors when the client\n\t// sends syntax that may have unwanted side effects.\n\tSafeUpdates bool `protobuf:\"varint,15,opt,name=safe_updates,json=safeUpdates,proto3\" json:\"safe_updates,omitempty\"`\n\t// PreferLookupJoinsForFKs causes foreign key operations to prefer lookup\n\t// joins.\n\tPreferLookupJoinsForFKs bool `protobuf:\"varint,16,opt,name=prefer_lookup_joins_for_fks,json=preferLookupJoinsForFks,proto3\" json:\"prefer_lookup_joins_for_fks,omitempty\"`\n\t// ZigzagJoinEnabled indicates whether the optimizer should try and plan a\n\t// zigzag join.\n\tZigzagJoinEnabled bool `protobuf:\"varint,17,opt,name=zigzag_join_enabled,json=zigzagJoinEnabled,proto3\" json:\"zigzag_join_enabled,omitempty\"`\n\t// RequireExplicitPrimaryKeys indicates whether CREATE TABLE statements should\n\t// error out if no primary key is provided.\n\tRequireExplicitPrimaryKeys bool `protobuf:\"varint,18,opt,name=require_explicit_primary_keys,json=requireExplicitPrimaryKeys,proto3\" json:\"require_explicit_primary_keys,omitempty\"`\n\t// ForceSavepointRestart overrides the default SAVEPOINT behavior\n\t// for compatibility with certain ORMs. When this flag is set,\n\t// the savepoint name will no longer be compared against the magic\n\t// identifier `cockroach_restart` in order use a restartable\n\t// transaction.\n\tForceSavepointRestart bool `protobuf:\"varint,19,opt,name=force_savepoint_restart,json=forceSavepointRestart,proto3\" json:\"force_savepoint_restart,omitempty\"`\n\t// AllowPrepareAsOptPlan must be set to allow use of\n\t//   PREPARE name AS OPT PLAN '...'\n\tAllowPrepareAsOptPlan bool `protobuf:\"varint,20,opt,name=allow_prepare_as_opt_plan,json=allowPrepareAsOptPlan,proto3\" json:\"allow_prepare_as_opt_plan,omitempty\"`\n\t// TempTablesEnabled indicates whether temporary tables can be created or not.\n\tTempTablesEnabled bool `protobuf:\"varint,21,opt,name=temp_tables_enabled,json=tempTablesEnabled,proto3\" json:\"temp_tables_enabled,omitempty\"`\n\t// ImplicitPartitioningEnabled indicates whether implicit column partitioning\n\t// can be created.\n\tImplicitColumnPartitioningEnabled bool `protobuf:\"varint,22,opt,name=implicit_column_partitioning_enabled,json=implicitColumnPartitioningEnabled,proto3\" json:\"implicit_column_partitioning_enabled,omitempty\"`\n\t// OverrideMultiRegionZoneConfigEnabled indicates whether zone configurations can be\n\t// modified for multi-region databases and tables/indexes/partitions.\n\tOverrideMultiRegionZoneConfigEnabled bool `protobuf:\"varint,24,opt,name=override_multi_region_zone_config_enabled,json=overrideMultiRegionZoneConfigEnabled,proto3\" json:\"override_multi_region_zone_config_enabled,omitempty\"`\n\t// DisallowFullTableScans indicates whether queries that plan full table scans\n\t// should be rejected.\n\tDisallowFullTableScans bool `protobuf:\"varint,26,opt,name=disallow_full_table_scans,json=disallowFullTableScans,proto3\" json:\"disallow_full_table_scans,omitempty\"`\n\t// ImplicitSelectForUpdate is true if FOR UPDATE locking may be used during\n\t// the row-fetch phase of mutation statements.\n\tImplicitSelectForUpdate bool `protobuf:\"varint,27,opt,name=implicit_select_for_update,json=implicitSelectForUpdate,proto3\" json:\"implicit_select_for_update,omitempty\"`\n\t// InsertFastPath is true if the fast path for insert (with VALUES input) may\n\t// be used.\n\tInsertFastPath bool `protobuf:\"varint,28,opt,name=insert_fast_path,json=insertFastPath,proto3\" json:\"insert_fast_path,omitempty\"`\n\t// AlterColumnTypeGeneralEnabled is true if ALTER TABLE ... ALTER COLUMN ...\n\t// TYPE x may be used for general conversions requiring online schema change/\n\tAlterColumnTypeGeneralEnabled bool `protobuf:\"varint,29,opt,name=alter_column_type_general_enabled,json=alterColumnTypeGeneralEnabled,proto3\" json:\"alter_column_type_general_enabled,omitempty\"`\n\t// SynchronousCommit is a dummy setting for the synchronous_commit var.\n\tSynchronousCommit bool `protobuf:\"varint,30,opt,name=synchronous_commit,json=synchronousCommit,proto3\" json:\"synchronous_commit,omitempty\"`\n\t// EnableSeqScan is a dummy setting for the enable_seqscan var.\n\tEnableSeqScan bool `protobuf:\"varint,31,opt,name=enable_seq_scan,json=enableSeqScan,proto3\" json:\"enable_seq_scan,omitempty\"`\n\t// EnableUniqueWithoutIndexConstraints indicates whether creating unique\n\t// constraints without an index is allowed.\n\t// TODO(rytaft): remove this once unique without index constraints are fully\n\t// supported.\n\tEnableUniqueWithoutIndexConstraints bool `protobuf:\"varint,33,opt,name=enable_unique_without_index_constraints,json=enableUniqueWithoutIndexConstraints,proto3\" json:\"enable_unique_without_index_constraints,omitempty\"`\n\t// StubCatalogTablesEnabled allows queries against virtual\n\t// tables that are not yet implemented.\n\tStubCatalogTablesEnabled bool `protobuf:\"varint,34,opt,name=stub_catalog_tables_enabled,json=stubCatalogTablesEnabled,proto3\" json:\"stub_catalog_tables_enabled,omitempty\"`\n\t// ExperimentalComputedColumnRewrites allows automatic rewriting of computed\n\t// column expressions in CREATE TABLE and ALTER TABLE statements. See the\n\t// experimentalComputedColumnRewrites cluster setting for a description of the\n\t// format.\n\tExperimentalComputedColumnRewrites string `protobuf:\"bytes,35,opt,name=experimental_computed_column_rewrites,json=experimentalComputedColumnRewrites,proto3\" json:\"experimental_computed_column_rewrites,omitempty\"`\n\t// EnableStreamReplication indicates whether to allow setting up a replication\n\t// stream.\n\tEnableStreamReplication bool `protobuf:\"varint,37,opt,name=enable_stream_replication,json=enableStreamReplication,proto3\" json:\"enable_stream_replication,omitempty\"`\n\t// ResultsBufferSize specifies the size at which the pgwire results buffer\n\t// will self-flush.\n\tResultsBufferSize int64 `protobuf:\"varint,38,opt,name=results_buffer_size,json=resultsBufferSize,proto3\" json:\"results_buffer_size,omitempty\"`\n\t// PropagateInputOrdering indicates that when planning a subquery or CTE, the\n\t// inner ordering should be propagated to the outer scope if the outer scope\n\t// is unordered. PropagateInputOrdering is currently experimental.\n\tPropagateInputOrdering bool `protobuf:\"varint,39,opt,name=propagate_input_ordering,json=propagateInputOrdering,proto3\" json:\"propagate_input_ordering,omitempty\"`\n\t// ExperimentalDistSQLPlanningMode indicates whether the experimental\n\t// DistSQL planning driven by the optimizer is enabled.\n\tExperimentalDistSQLPlanningMode ExperimentalDistSQLPlanningMode `protobuf:\"varint,40,opt,name=experimental_distsql_planning_mode,json=experimentalDistsqlPlanningMode,proto3,casttype=ExperimentalDistSQLPlanningMode\" json:\"experimental_distsql_planning_mode,omitempty\"`\n\t// DistSQLMode indicates whether to run queries using the distributed\n\t// execution engine.\n\tDistSQLMode DistSQLExecMode `protobuf:\"varint,41,opt,name=dist_sql_mode,json=distSqlMode,proto3,casttype=DistSQLExecMode\" json:\"dist_sql_mode,omitempty\"`\n\t// SerialNormalizationMode indicates how to handle the SERIAL pseudo-type.\n\tSerialNormalizationMode SerialNormalizationMode `protobuf:\"varint,42,opt,name=serial_normalization_mode,json=serialNormalizationMode,proto3,casttype=SerialNormalizationMode\" json:\"serial_normalization_mode,omitempty\"`\n\t// NewSchemaChangerMode indicates whether to use the new schema changer.\n\tNewSchemaChangerMode NewSchemaChangerMode `protobuf:\"varint,43,opt,name=new_schema_changer_mode,json=newSchemaChangerMode,proto3,casttype=NewSchemaChangerMode\" json:\"new_schema_changer_mode,omitempty\"`\n\t// SequenceCache stores sequence values which have been cached using the\n\t// CACHE sequence option.\n\tSequenceCache SequenceCache `protobuf:\"bytes,44,rep,name=sequence_cache,json=sequenceCache,proto3,casttype=SequenceCache\" json:\"sequence_cache,omitempty\" protobuf_key:\"varint,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\t// PlacementEnabled indicates whether PLACEMENT can be used or not.\n\tPlacementEnabled bool `protobuf:\"varint,45,opt,name=placement_enabled,json=placementEnabled,proto3\" json:\"placement_enabled,omitempty\"`\n\t// SessionUserProto is the name of the user which has performed a SET ROLE\n\t// command. In other words, it is the name of the user which originally\n\t// established the connection before SET ROLE was first performed.\n\t// This is only populated when SET ROLE is used, otherwise the session_user\n\t// is the same as the UserProto in SessionData.\n\t// Postgres allows the SessionUser to be changed with SET SESSION AUTHORIZATION\n\t// but CockroachDB doesn't allow that at the time of this writing.\n\tSessionUserProto github_com_cockroachdb_cockroach_pkg_security_username.SQLUsernameProto `protobuf:\"bytes,46,opt,name=session_user_proto,json=sessionUserProto,proto3,casttype=github.com/cockroachdb/cockroachdb-parser/pkg/security/username.SQLUsernameProto\" json:\"session_user_proto,omitempty\"`\n\t// TxnRowsWrittenLog is the threshold for the number of rows written by a SQL\n\t// transaction which - once exceeded - will trigger a logging event to SQL_PERF\n\t// (or SQL_INTERNAL_PERF for internal transactions); 0 means disabled.\n\tTxnRowsWrittenLog int64 `protobuf:\"varint,47,opt,name=txn_rows_written_log,json=txnRowsWrittenLog,proto3\" json:\"txn_rows_written_log,omitempty\"`\n\t// TxnRowsWrittenErr is the limit for the number of rows written by a SQL\n\t// transaction which - once exceeded - will fail the transaction (or will\n\t// trigger a logging event to SQL_INTERNAL_PERF for internal transactions); 0\n\t// means disabled.\n\tTxnRowsWrittenErr int64 `protobuf:\"varint,48,opt,name=txn_rows_written_err,json=txnRowsWrittenErr,proto3\" json:\"txn_rows_written_err,omitempty\"`\n\t// TxnRowsReadLog is the threshold for the number of rows read by a SQL\n\t// transaction which - once exceeded - will trigger a logging event to SQL_PERF\n\t// (or SQL_INTERNAL_PERF for internal transactions); 0 means disabled.\n\tTxnRowsReadLog int64 `protobuf:\"varint,49,opt,name=txn_rows_read_log,json=txnRowsReadLog,proto3\" json:\"txn_rows_read_log,omitempty\"`\n\t// TxnRowsReadErr is the limit for the number of rows read by a SQL\n\t// transaction which - once exceeded - will fail the transaction (or will\n\t// trigger a logging event to SQL_INTERNAL_PERF for internal transactions); 0\n\t// means disabled.\n\tTxnRowsReadErr int64 `protobuf:\"varint,50,opt,name=txn_rows_read_err,json=txnRowsReadErr,proto3\" json:\"txn_rows_read_err,omitempty\"`\n\t// AutoRehomingEnabled indicates whether or not REGIONAL BY ROW tables should\n\t// have a rehoming ON UPDATE clause added to them.\n\tAutoRehomingEnabled bool `protobuf:\"varint,51,opt,name=auto_rehoming_enabled,json=autoRehomingEnabled,proto3\" json:\"auto_rehoming_enabled,omitempty\"`\n\t// IsSuperuser returns whether the user is a \"superuser\", which is defined\n\t// to be a user with an admin role.\n\tIsSuperuser bool `protobuf:\"varint,52,opt,name=is_superuser,json=isSuperuser,proto3\" json:\"is_superuser,omitempty\"`\n\t// LargeFullScanRows is the estimated row count at which a full scan is\n\t// considered large, and worthy of logging and/or disabling depending on other\n\t// settings.\n\tLargeFullScanRows float64 `protobuf:\"fixed64,53,opt,name=large_full_scan_rows,json=largeFullScanRows,proto3\" json:\"large_full_scan_rows,omitempty\"`\n\t// InjectRetryErrorsEnabled causes statements inside an explicit\n\t// transaction to return a transaction retry error. It is intended for\n\t// developers to test their app's retry logic.\n\t//\n\t// Note that this session variable is **not** propagated to the internal\n\t// executors - use InternalExecutorOverride for that.\n\tInjectRetryErrorsEnabled bool `protobuf:\"varint,54,opt,name=inject_retry_errors_enabled,json=injectRetryErrorsEnabled,proto3\" json:\"inject_retry_errors_enabled,omitempty\"`\n\t// NullOrderedLast controls whether NULL is ordered last. We default to\n\t// NULLS FIRST for ascending order by default, whereas postgres defaults\n\t// to NULLS LAST.\n\tNullOrderedLast bool `protobuf:\"varint,55,opt,name=null_ordered_last,json=nullOrderedLast,proto3\" json:\"null_ordered_last,omitempty\"`\n\t// DisablePlanGists indicates whether we should disable automatic gists.\n\tDisablePlanGists bool `protobuf:\"varint,56,opt,name=disable_plan_gists,json=disablePlanGists,proto3\" json:\"disable_plan_gists,omitempty\"`\n\t// CustomOptions contains a map of all custom session settings.\n\t// These session variables have at least one period in their name.\n\tCustomOptions map[string]string `protobuf:\"bytes,57,rep,name=custom_options,json=customOptions,proto3\" json:\"custom_options,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\t// IndexRecommendationsEnabled controls whether or not we display index\n\t// recommendations below the plan in EXPLAIN.\n\tIndexRecommendationsEnabled bool `protobuf:\"varint,58,opt,name=index_recommendations_enabled,json=indexRecommendationsEnabled,proto3\" json:\"index_recommendations_enabled,omitempty\"`\n\t// AvoidBuffering indicates that the returned data should not be\n\t// buffered by conn executor.  This is currently used by replication primitives\n\t// to ensure the data is flushed to the consumer immediately.\n\t//\n\t// Does not apply to the InternalExecutor.\n\tAvoidBuffering bool `protobuf:\"varint,59,opt,name=avoid_buffering,json=avoidBuffering,proto3\" json:\"avoid_buffering,omitempty\"`\n\t// CheckFunctionBodies indicates whether functions are validated during\n\t// creation.\n\tCheckFunctionBodies bool `protobuf:\"varint,60,opt,name=check_function_bodies,json=checkFunctionBodies,proto3\" json:\"check_function_bodies,omitempty\"`\n\t// CostScansWithDefaultColSize is true when the optimizer should cost scans\n\t// and joins using the same default number of bytes per column instead of\n\t// column sizes from the AvgSize table statistic.\n\tCostScansWithDefaultColSize bool `protobuf:\"varint,61,opt,name=cost_scans_with_default_col_size,json=costScansWithDefaultColSize,proto3\" json:\"cost_scans_with_default_col_size,omitempty\"`\n\t// DefaultTxnQualityOfService indicates the default QoSLevel/WorkPriority of\n\t// newly created transactions.\n\tDefaultTxnQualityOfService QoSLevel `protobuf:\"varint,62,opt,name=default_txn_quality_of_service,json=defaultTxnQualityOfService,proto3,casttype=QoSLevel\" json:\"default_txn_quality_of_service,omitempty\"`\n\t// OptSplitScanLimit indicates the maximum number of UNION ALL statements a\n\t// Scan may be split into during query optimization to avoid a sort.\n\tOptSplitScanLimit int32 `protobuf:\"varint,63,opt,name=opt_split_scan_limit,json=optSplitScanLimit,proto3\" json:\"opt_split_scan_limit,omitempty\"`\n\t// EnableSuperRegions is true when super region functionality is enabled.\n\tEnableSuperRegions bool `protobuf:\"varint,64,opt,name=enable_super_regions,json=enableSuperRegions,proto3\" json:\"enable_super_regions,omitempty\"`\n\t// OverrideAlterPrimaryRegionInSuperRegion is true when the user is allowed\n\t// to modify a primary region that is part of a super region.\n\tOverrideAlterPrimaryRegionInSuperRegion bool `protobuf:\"varint,65,opt,name=override_alter_primary_region_in_super_region,json=overrideAlterPrimaryRegionInSuperRegion,proto3\" json:\"override_alter_primary_region_in_super_region,omitempty\"`\n\t// EnableImplicitTransactionForBatchStatements configures the handling of\n\t// multiple statements in a single query. If enabled, then an implicit\n\t// transaction is used when multiple statements are sent in a single query.\n\t// Setting this to false is a divergence from the pgwire protocol, but\n\t// matches the behavior of CockroachDB v21.2 and earlier.\n\tEnableImplicitTransactionForBatchStatements bool `protobuf:\"varint,66,opt,name=enable_implicit_transaction_for_batch_statements,json=enableImplicitTransactionForBatchStatements,proto3\" json:\"enable_implicit_transaction_for_batch_statements,omitempty\"`\n\t// ExpectAndIgnoreNotVisibleColumnsInCopy changes behaviour for COPY t FROM ...\n\t// (with no column name specifiers) to expect and ignore not visible column\n\t// fields.\n\tExpectAndIgnoreNotVisibleColumnsInCopy bool `protobuf:\"varint,67,opt,name=expect_and_ignore_not_visible_columns_in_copy,json=expectAndIgnoreNotVisibleColumnsInCopy,proto3\" json:\"expect_and_ignore_not_visible_columns_in_copy,omitempty\"`\n\t// MultipleModificationsOfTable allows statements containing multiple INSERT\n\t// ON CONFLICT, UPSERT, UPDATE, or DELETE subqueries modifying the same table,\n\t// at the risk of data corruption if the same row is modified multiple times.\n\tMultipleModificationsOfTable bool `protobuf:\"varint,68,opt,name=multiple_modifications_of_table,json=multipleModificationsOfTable,proto3\" json:\"multiple_modifications_of_table,omitempty\"`\n\t// ShowPrimaryKeyConstraintOnNotVisibleColumns controls whether SHOW\n\t// CONSTRAINTS and pg_catalog.pg_constraint will include primary key\n\t// constraints that only include hidden columns.\n\tShowPrimaryKeyConstraintOnNotVisibleColumns bool `protobuf:\"varint,69,opt,name=show_primary_key_constraint_on_not_visible_columns,json=showPrimaryKeyConstraintOnNotVisibleColumns,proto3\" json:\"show_primary_key_constraint_on_not_visible_columns,omitempty\"`\n\t// TestingOptimizerRandomSeed is non-zero when we are testing the optimizer by\n\t// randomly perturbing costs or disabling rules. This will initialize a rng\n\t// seeded to the given integer. This should only be used in test scenarios and\n\t// is very much a non-production setting.\n\tTestingOptimizerRandomSeed int64 `protobuf:\"varint,70,opt,name=testing_optimizer_random_seed,json=testingOptimizerRandomSeed,proto3\" json:\"testing_optimizer_random_seed,omitempty\"`\n\t// UnconstrainedNonCoveringIndexScanEnabled controls whether unconstrained\n\t// non-covering index scan access paths are explored by the optimizer.\n\tUnconstrainedNonCoveringIndexScanEnabled bool `protobuf:\"varint,71,opt,name=unconstrained_non_covering_index_scan_enabled,json=unconstrainedNonCoveringIndexScanEnabled,proto3\" json:\"unconstrained_non_covering_index_scan_enabled,omitempty\"`\n\t// TestingOptimizerCostPerturbation is non-zero when the coster should\n\t// randomly perturb costs to produce a non-optimal query plan. This should\n\t// only be used in test scenarios and is very much a non-production setting.\n\tTestingOptimizerCostPerturbation float64 `protobuf:\"fixed64,72,opt,name=testing_optimizer_cost_perturbation,json=testingOptimizerCostPerturbation,proto3\" json:\"testing_optimizer_cost_perturbation,omitempty\"`\n\t// TestingOptimizerDisableRuleProbability is non-zero when the optimizer\n\t// should randomly disable every non-essential transformation rule with the\n\t// given probability. This should only be used in test scenarios and is very\n\t// much a non-production setting.\n\tTestingOptimizerDisableRuleProbability float64 `protobuf:\"fixed64,73,opt,name=testing_optimizer_disable_rule_probability,json=testingOptimizerDisableRuleProbability,proto3\" json:\"testing_optimizer_disable_rule_probability,omitempty\"`\n\t// OptimizerUseNotVisibleIndexes indicates whether the optimizer can still\n\t// choose to use visible indexes for query plans.\n\tOptimizerUseNotVisibleIndexes bool `protobuf:\"varint,74,opt,name=optimizer_use_not_visible_indexes,json=optimizerUseNotVisibleIndexes,proto3\" json:\"optimizer_use_not_visible_indexes,omitempty\"`\n\t// CopyFastPathEnabled controls whether the optimized copy mode is enabled.\n\tCopyFastPathEnabled bool `protobuf:\"varint,75,opt,name=copy_fast_path_enabled,json=copyFastPathEnabled,proto3\" json:\"copy_fast_path_enabled,omitempty\"`\n\t// disable_hoist_projection_in_join_limitation disables the restrictions\n\t// placed on projection hoisting during query planning in the optimizer.\n\tDisableHoistProjectionInJoinLimitation bool `protobuf:\"varint,76,opt,name=disable_hoist_projection_in_join_limitation,json=disableHoistProjectionInJoinLimitation,proto3\" json:\"disable_hoist_projection_in_join_limitation,omitempty\"`\n\t// CopyFromAtomicEnabled controls whether implicit txn copy from operations\n\t// are atomic or segmented.\n\tCopyFromAtomicEnabled bool `protobuf:\"varint,77,opt,name=copy_from_atomic_enabled,json=copyFromAtomicEnabled,proto3\" json:\"copy_from_atomic_enabled,omitempty\"`\n\t// EnforceHomeRegion, when true, causes queries which scan rows from multiple\n\t// regions, or which scan rows from a single home region, but initiated from\n\t// a gateway region which differs from that home region, to error out.\n\tEnforceHomeRegion bool `protobuf:\"varint,78,opt,name=enforce_home_region,json=enforceHomeRegion,proto3\" json:\"enforce_home_region,omitempty\"`\n\t// OptimizerUseForecasts indicates whether we should use statistics forecasts\n\t// for cardinality estimation in the optimizer.\n\tOptimizerUseForecasts bool `protobuf:\"varint,79,opt,name=optimizer_use_forecasts,json=optimizerUseForecasts,proto3\" json:\"optimizer_use_forecasts,omitempty\"`\n\t// VariableInequalityLookupJoinEnabled indicates whether the optimizer should\n\t// be allowed to consider lookup joins with inequality conditions, in\n\t// addition to the other restrictions on when they are planned.\n\tVariableInequalityLookupJoinEnabled bool `protobuf:\"varint,80,opt,name=variable_inequality_lookup_join_enabled,json=variableInequalityLookupJoinEnabled,proto3\" json:\"variable_inequality_lookup_join_enabled,omitempty\"`\n\t// TransactionSessionTimeout is the duration a transaction is permitted to\n\t// run before the transaction is canceled. If set to 0, there is no timeout.\n\tTransactionTimeout time.Duration `protobuf:\"varint,81,opt,name=transaction_timeout,json=transactionTimeout,proto3,casttype=time.Duration\" json:\"transaction_timeout,omitempty\"`\n\t// SystemIdentityProto is the original name of the client presented to pgwire\n\t// before it was mapped to a SQL identifier.\n\tSystemIdentityProto string `protobuf:\"bytes,82,opt,name=system_identity_proto,json=systemIdentityProto,proto3\" json:\"system_identity_proto,omitempty\"`\n\t// DescriptorValidationMode indicates whether to validate the descriptors at\n\t// read and write time, at read time only, or never.\n\tDescriptorValidationMode DescriptorValidationMode `protobuf:\"varint,83,opt,name=descriptor_validation_mode,json=descriptorValidationMode,proto3,casttype=DescriptorValidationMode\" json:\"descriptor_validation_mode,omitempty\"`\n\t// ExperimentalHashGroupJoinEnabled indicates whether the physical planner\n\t// will attempt to convert a hash join followed by a hash aggregator into a\n\t// single hash group-join operation. At the moment, there is no optimizer\n\t// support for this, so some things can be incorrect (e.g. EXPLAIN plans).\n\tExperimentalHashGroupJoinEnabled bool `protobuf:\"varint,84,opt,name=experimental_hash_group_join_enabled,json=experimentalHashGroupJoinEnabled,proto3\" json:\"experimental_hash_group_join_enabled,omitempty\"`\n\t// AllowOrdinalColumnReferences indicates whether the deprecated ordinal\n\t// column reference syntax (e.g., `SELECT @1 FROM t`) is allowed.\n\tAllowOrdinalColumnReferences bool `protobuf:\"varint,85,opt,name=allow_ordinal_column_references,json=allowOrdinalColumnReferences,proto3\" json:\"allow_ordinal_column_references,omitempty\"`\n\t// OptimizerUseImprovedDisjunctionStats, when true, indicates that the\n\t// optimizer should use improved statistics calculations for disjunctive\n\t// filters.\n\tOptimizerUseImprovedDisjunctionStats bool `protobuf:\"varint,86,opt,name=optimizer_use_improved_disjunction_stats,json=optimizerUseImprovedDisjunctionStats,proto3\" json:\"optimizer_use_improved_disjunction_stats,omitempty\"`\n\t// OptimizerUseLimitOrderingForStreamingGroupBy enables the exploration rule\n\t// which optimizes 'SELECT ... GROUP BY ... ORDER BY ... LIMIT n' queries.\n\t// The rule uses the required ordering in the limit expression to inform an\n\t// interesting ordering to require from the input to the group-by expression.\n\t// This can potentially eliminate a top-k operation.\n\tOptimizerUseLimitOrderingForStreamingGroupBy bool `protobuf:\"varint,88,opt,name=optimizer_use_limit_ordering_for_streaming_group_by,json=optimizerUseLimitOrderingForStreamingGroupBy,proto3\" json:\"optimizer_use_limit_ordering_for_streaming_group_by,omitempty\"`\n\t// CopyFromRetriesEnabled controls whether retries should be internally\n\t// attempted for retriable errors.\n\tCopyFromRetriesEnabled bool `protobuf:\"varint,89,opt,name=copy_from_retries_enabled,json=copyFromRetriesEnabled,proto3\" json:\"copy_from_retries_enabled,omitempty\"`\n\t// DeclareCursorStatementTimeoutEnabled controls whether statement timeouts\n\t// apply during DECLARE CURSOR.\n\tDeclareCursorStatementTimeoutEnabled bool `protobuf:\"varint,90,opt,name=declare_cursor_statement_timeout_enabled,json=declareCursorStatementTimeoutEnabled,proto3\" json:\"declare_cursor_statement_timeout_enabled,omitempty\"`\n\t// OptimizerUseImprovedSplitDisjunctionForJoins enables the optimizer to split\n\t// disjunctions (OR expressions) in more cases in join conditions by building a\n\t// UNION of two join expressions. If this setting is true, all disjunctions in\n\t// inner, semi, and anti joins will be split. If false, only disjunctions\n\t// potentially containing an equijoin condition will be split.\n\tOptimizerUseImprovedSplitDisjunctionForJoins bool `protobuf:\"varint,91,opt,name=optimizer_use_improved_split_disjunction_for_joins,json=optimizerUseImprovedSplitDisjunctionForJoins,proto3\" json:\"optimizer_use_improved_split_disjunction_for_joins,omitempty\"`\n\t// InjectRetryErrorsOnCommitEnabled causes statements inside an explicit\n\t// transaction to return a transaction retry error just before transcation commit.\n\t// It is intended for developers to test their app's retry logic.\n\tInjectRetryErrorsOnCommitEnabled bool `protobuf:\"varint,92,opt,name=inject_retry_errors_on_commit_enabled,json=injectRetryErrorsOnCommitEnabled,proto3\" json:\"inject_retry_errors_on_commit_enabled,omitempty\"`\n\t// EnforceHomeRegionFollowerReadsEnabled, when true, allows the use of\n\t// follower reads to dynamically detect and report a query's home region\n\t// when the enforce_home_region session setting is also true.\n\tEnforceHomeRegionFollowerReadsEnabled bool `protobuf:\"varint,93,opt,name=enforce_home_region_follower_reads_enabled,json=enforceHomeRegionFollowerReadsEnabled,proto3\" json:\"enforce_home_region_follower_reads_enabled,omitempty\"`\n\t// OptimizerAlwaysUseHistograms, when true, ensures that the optimizer\n\t// always uses histograms to calculate statistics if available.\n\tOptimizerAlwaysUseHistograms bool `protobuf:\"varint,94,opt,name=optimizer_always_use_histograms,json=optimizerAlwaysUseHistograms,proto3\" json:\"optimizer_always_use_histograms,omitempty\"`\n\t// EnableCreateStatsUsingExtremes, when true, allows the use of CREATE\n\t// STATISTICS .. USING EXTREMES.\n\tEnableCreateStatsUsingExtremes bool `protobuf:\"varint,95,opt,name=enable_create_stats_using_extremes,json=enableCreateStatsUsingExtremes,proto3\" json:\"enable_create_stats_using_extremes,omitempty\"`\n\t// AllowRoleMembershipsToChangeDuringTransaction, when true, means that\n\t// operations which consult the role membership cache do not retain their\n\t// lease on that version of the cache throughout the transaction. The\n\t// consequence of this is that the transaction may not experience a singular\n\t// view of role membership, and it may be able to commit after the revocation\n\t// of a role membership which the transaction relied on has successfully been\n\t// committed and acknowledged to the user.\n\tAllowRoleMembershipsToChangeDuringTransaction bool `protobuf:\"varint,96,opt,name=allow_role_memberships_to_change_during_transaction,json=allowRoleMembershipsToChangeDuringTransaction,proto3\" json:\"allow_role_memberships_to_change_during_transaction,omitempty\"`\n\t// PreparedStatementsCacheSize, when not equal to 0, causes the LRU prepared\n\t// statements in a session to be automatically deallocated when total prepared\n\t// statement memory usage for that session is more than the cache size.\n\t// Execution of these deallocated prepared statements will fail until they are\n\t// prepared again.\n\tPreparedStatementsCacheSize int64 `protobuf:\"varint,97,opt,name=prepared_statements_cache_size,json=preparedStatementsCacheSize,proto3\" json:\"prepared_statements_cache_size,omitempty\"`\n\t// MultipleActivePortalEnabled determines if the pgwire portal execution\n\t// for certain queries can be paused. If true, portals with read-only SELECT\n\t// query without sub/post queries can be executed in interleaving manner, but\n\t// with a local execution plan.\n\tMultipleActivePortalsEnabled bool `protobuf:\"varint,100,opt,name=multiple_active_portals_enabled,json=multipleActivePortalsEnabled,proto3\" json:\"multiple_active_portals_enabled,omitempty\"`\n\t// UnboundedParallelScans, when true, indicates that the TableReader DistSQL\n\t// processors should parallelize scans across ranges. Note that the\n\t// parallelization will still be disabled for queries with LIMITs, and it can\n\t// lead to increased likelihood of OOMs.\n\tUnboundedParallelScans bool `protobuf:\"varint,101,opt,name=unbounded_parallel_scans,json=unboundedParallelScans,proto3\" json:\"unbounded_parallel_scans,omitempty\"`\n\t// OptimizerHoistUncorrelatedEqualitySubqueries, when true, causes the\n\t// optimizer to hoist uncorrelated subqueries that are part of an equality\n\t// expression with a column reference, which can produce more efficient query\n\t// plans.\n\tOptimizerHoistUncorrelatedEqualitySubqueries bool `protobuf:\"varint,102,opt,name=optimizer_hoist_uncorrelated_equality_subqueries,json=optimizerHoistUncorrelatedEqualitySubqueries,proto3\" json:\"optimizer_hoist_uncorrelated_equality_subqueries,omitempty\"`\n\t// TestingOptimizerInjectPanics indicates whether random panics are injected\n\t// during optimization. The goal of this setting is to flush out cases where\n\t// panics used for error-propagation are uncaught.\n\tTestingOptimizerInjectPanics bool `protobuf:\"varint,103,opt,name=testing_optimizer_inject_panics,json=testingOptimizerInjectPanics,proto3\" json:\"testing_optimizer_inject_panics,omitempty\"`\n\t// OptimizerUseImprovedComputedColumnFiltersDerivation, when true, causes the\n\t// optimizer to derive filters on computed columns in more cases. Previously,\n\t// filters could only be derived when the expression defining the computed\n\t// column involved a single column and that column was equated with a single\n\t// constant value in a WHERE clause filter.\n\tOptimizerUseImprovedComputedColumnFiltersDerivation bool `protobuf:\"varint,104,opt,name=optimizer_use_improved_computed_column_filters_derivation,json=optimizerUseImprovedComputedColumnFiltersDerivation,proto3\" json:\"optimizer_use_improved_computed_column_filters_derivation,omitempty\"`\n\t// DefaultTxnIsolationLevel indicates the default isolation level of newly\n\t// created transactions.\n\t// NOTE: we'd prefer to use tree.IsolationLevel here, but doing so would\n\t// introduce a package dependency cycle.\n\tDefaultTxnIsolationLevel int64 `protobuf:\"varint,105,opt,name=default_txn_isolation_level,json=defaultTxnIsolationLevel,proto3\" json:\"default_txn_isolation_level,omitempty\"`\n\t// ReplicationMode represents the replication parameter passed in during\n\t// connection time.\n\tReplicationMode ReplicationMode `protobuf:\"varint,106,opt,name=replication_mode,json=replicationMode,proto3,enum=cockroach.sql.sessiondatapb.ReplicationMode\" json:\"replication_mode,omitempty\"`\n\t// OptimizerUseImprovedJoinElimination, when true, allows the optimizer to\n\t// eliminate joins in more cases by remapping columns from the eliminated\n\t// input of the join to equivalent columns from the preserved input.\n\tOptimizerUseImprovedJoinElimination bool `protobuf:\"varint,107,opt,name=optimizer_use_improved_join_elimination,json=optimizerUseImprovedJoinElimination,proto3\" json:\"optimizer_use_improved_join_elimination,omitempty\"`\n\t// ImplicitFKLockingForSerializable is true if FOR SHARE locking may be used\n\t// while checking the referenced table during an insert or update to a table\n\t// with a foreign key under serializable isolation. (Under weaker isolation\n\t// levels foreign key checks of the parent table always use FOR SHARE\n\t// locking.)\n\tImplicitFKLockingForSerializable bool `protobuf:\"varint,108,opt,name=implicit_fk_locking_for_serializable,json=implicitFkLockingForSerializable,proto3\" json:\"implicit_fk_locking_for_serializable,omitempty\"`\n\t// DurableLockingForSerializable is true if we should use durable locking for\n\t// SELECT FOR UPDATE statements, SELECT FOR SHARE statements, and constraint\n\t// checks under serializable isolation. (Serializable isolation does not\n\t// require locking for correctness, so by default we use best-effort locks for\n\t// better performance.) Weaker isolation levels always use durable locking.\n\tDurableLockingForSerializable bool `protobuf:\"varint,109,opt,name=durable_locking_for_serializable,json=durableLockingForSerializable,proto3\" json:\"durable_locking_for_serializable,omitempty\"`\n\t// SharedLockingForSerializable, if set to true, means SELECT FOR SHARE and\n\t// SELECT FOR KEY SHARE statements issued by transactions that run with\n\t// serializable isolation will acquire shared locks; otherwise, they'll\n\t// perform non-locking reads.\n\t//\n\t// Weaker isolation levels always acquire shared locks for SELECT FOR SHARE\n\t// and SELECT FOR KEY SHARE statements, regardless of this session setting.\n\tSharedLockingForSerializable bool `protobuf:\"varint,112,opt,name=shared_locking_for_serializable,json=sharedLockingForSerializable,proto3\" json:\"shared_locking_for_serializable,omitempty\"`\n\t// MaxRetriesForReadCommitted indicates the maximum number of\n\t// automatic retries to perform for statements in explicit READ COMMITTED\n\t// transactions that see a transaction retry error.\n\tMaxRetriesForReadCommitted int32 `protobuf:\"varint,110,opt,name=max_retries_for_read_committed,json=maxRetriesForReadCommitted,proto3\" json:\"max_retries_for_read_committed,omitempty\"`\n\t// StrictDDLAtomicity causes errors when the client attempts DDL\n\t// operations inside an explicit txn and CockroachDB cannot\n\t// guarantee the DDL to be performed atomically.\n\t//\n\t// When this is not set, a transaction may commit its DML\n\t// statements but fail its DDL statements, resulting\n\t// in error XXA00 - TransactionCommittedWithSchemaChangeFailure.\n\t//\n\t// When this is set, that particular atomicity violation should\n\t// not occur any more (at the expense of disabling certain\n\t// forms of DDL inside explicit txns).\n\tStrictDDLAtomicity bool `protobuf:\"varint,111,opt,name=strict_ddl_atomicity,json=strictDdlAtomicity,proto3\" json:\"strict_ddl_atomicity,omitempty\"`\n\t// UnsafeSettingInterlockKey needs to be set to a special string\n\t// before SET CLUSTER SETTING is allowed on an unsafe setting.\n\tUnsafeSettingInterlockKey string `protobuf:\"bytes,113,opt,name=unsafe_setting_interlock_key,json=unsafeSettingInterlockKey,proto3\" json:\"unsafe_setting_interlock_key,omitempty\"`\n\t// OptimizerUseLockOpForSerializable, when true, instructs the optimizer to\n\t// implement SELECT FOR UPDATE and SELECT FOR SHARE statements using the Lock\n\t// operator under serializable isolation.\n\t//\n\t// For correctness, under weaker isolation levels the optimizer always\n\t// implements SELECT FOR UPDATE and SELECT FOR SHARE using the Lock operator,\n\t// regardless of this setting.\n\tOptimizerUseLockOpForSerializable bool `protobuf:\"varint,114,opt,name=optimizer_use_lock_op_for_serializable,json=optimizerUseLockOpForSerializable,proto3\" json:\"optimizer_use_lock_op_for_serializable,omitempty\"`\n\t// OptimizerUseProvidedOrderingFix, when true, causes the optimizer to\n\t// reconcile provided orderings with required ordering choices. This prevents\n\t// internal errors due to incomplete functional dependencies, and also\n\t// fixes a bug that incorrectly truncated the provided ordering (see #113072).\n\tOptimizerUseProvidedOrderingFix bool `protobuf:\"varint,115,opt,name=optimizer_use_provided_ordering_fix,json=optimizerUseProvidedOrderingFix,proto3\" json:\"optimizer_use_provided_ordering_fix,omitempty\"`\n\t// DisableChangefeedReplication, when true, disables changefeed events from\n\t// being emitted for changes to data made in a session. This will apply only\n\t// to new txns created in the session.\n\tDisableChangefeedReplication bool `protobuf:\"varint,116,opt,name=disable_changefeed_replication,json=disableChangefeedReplication,proto3\" json:\"disable_changefeed_replication,omitempty\"`\n\t// CopyTxnQualityOfService indicates the default QoSLevel/WorkPriority of the\n\t// transactions used to evaluate COPY commands.\n\tCopyTxnQualityOfService QoSLevel `protobuf:\"varint,117,opt,name=copy_txn_quality_of_service,json=copyTxnQualityOfService,proto3,casttype=QoSLevel\" json:\"copy_txn_quality_of_service,omitempty\"`\n\t// CopyWritePipeliningEnabled indicates whether the write pipelining is\n\t// enabled for implicit txns used by COPY.\n\tCopyWritePipeliningEnabled bool `protobuf:\"varint,118,opt,name=copy_write_pipelining_enabled,json=copyWritePipeliningEnabled,proto3\" json:\"copy_write_pipelining_enabled,omitempty\"`\n\t// OptimizerMergeJoinsEnabled, when true, instructs the optimizer to explore\n\t// query plans with merge joins. When false, the optimizer does not attempt\n\t// to plan merge joins.\n\tOptimizerMergeJoinsEnabled bool `protobuf:\"varint,119,opt,name=optimizer_merge_joins_enabled,json=optimizerMergeJoinsEnabled,proto3\" json:\"optimizer_merge_joins_enabled,omitempty\"`\n\t// CopyNumRetriesPerBatch determines the number of times a single batch of\n\t// rows can be retried for non-atomic COPY.\n\tCopyNumRetriesPerBatch int32 `protobuf:\"varint,120,opt,name=copy_num_retries_per_batch,json=copyNumRetriesPerBatch,proto3\" json:\"copy_num_retries_per_batch,omitempty\"`\n\t// AutoCommitBeforeDDL will cause any DDL statement received during a\n\t// multi-statement transaction to make the transaction auto-commit before\n\t// executing the DDL statement. After the auto-commit, any other statements\n\t// that are in the transaction block will instead be executed in their own\n\t// implicit transaction.\n\tAutoCommitBeforeDDL bool `protobuf:\"varint,121,opt,name=autocommit_before_ddl,json=autocommitBeforeDdl,proto3\" json:\"autocommit_before_ddl,omitempty\"`\n\t// CloseCursorsAtCommit determines whether cursors remain open after their\n\t// parent transaction closes. This is useful for oracle compatibility.\n\tCloseCursorsAtCommit bool `protobuf:\"varint,122,opt,name=close_cursors_at_commit,json=closeCursorsAtCommit,proto3\" json:\"close_cursors_at_commit,omitempty\"`\n\t// PLpgSQLUseStrictInto causes PL/pgSQL \"SELECT ... INTO\" and \"RETURNING INTO\"\n\t// syntax to always behave as if they were specified with the STRICT option,\n\t// which throws a runtime error when the SQL statement doesn't return exactly\n\t// one row. This is useful for oracle compatibility.\n\tPLpgSQLUseStrictInto bool `protobuf:\"varint,123,opt,name=plpgsql_use_strict_into,json=plpgsqlUseStrictInto,proto3\" json:\"plpgsql_use_strict_into,omitempty\"`\n\t// OptimizerUseVirtualComputedColumnStats indicates whether we should use\n\t// statistics on virtual computed columns for cardinality estimation in the\n\t// optimizer.\n\tOptimizerUseVirtualComputedColumnStats bool `protobuf:\"varint,124,opt,name=optimizer_use_virtual_computed_column_stats,json=optimizerUseVirtualComputedColumnStats,proto3\" json:\"optimizer_use_virtual_computed_column_stats,omitempty\"`\n\t// OptimizerUseTrigramSimilarityOptimization indicates whether the optimizer\n\t// should generate improved plans for queries with trigram similarity filters.\n\tOptimizerUseTrigramSimilarityOptimization bool `protobuf:\"varint,125,opt,name=optimizer_use_trigram_similarity_optimization,json=optimizerUseTrigramSimilarityOptimization,proto3\" json:\"optimizer_use_trigram_similarity_optimization,omitempty\"`\n\t// OptimizerUseImprovedDistinctOnLimitHintCosting indicates whether the\n\t// optimizer should use an improved costing estimate for DistinctOn operators\n\t// with limit hints.\n\tOptimizerUseImprovedDistinctOnLimitHintCosting bool `protobuf:\"varint,126,opt,name=optimizer_use_improved_distinct_on_limit_hint_costing,json=optimizerUseImprovedDistinctOnLimitHintCosting,proto3\" json:\"optimizer_use_improved_distinct_on_limit_hint_costing,omitempty\"`\n\t// OptimizerUseImprovedTrigramSimilaritySelectivity indicates whether the\n\t// optimizer should use an improved selectivitiy estimate for trigram\n\t// similarity filters.\n\tOptimizerUseImprovedTrigramSimilaritySelectivity bool `protobuf:\"varint,127,opt,name=optimizer_use_improved_trigram_similarity_selectivity,json=optimizerUseImprovedTrigramSimilaritySelectivity,proto3\" json:\"optimizer_use_improved_trigram_similarity_selectivity,omitempty\"`\n\t// OptimizerUseImprovedZigzagJoinCosting, when true, indicates that the\n\t// optimizer should use improved logic in the cost model for zigzag joins.\n\tOptimizerUseImprovedZigzagJoinCosting bool `protobuf:\"varint,128,opt,name=optimizer_use_improved_zigzag_join_costing,json=optimizerUseImprovedZigzagJoinCosting,proto3\" json:\"optimizer_use_improved_zigzag_join_costing,omitempty\"`\n\t// OptimizerUseImprovedMultiColumnSelectivityEstimate, when true, indicates\n\t// that the optimizer should use an improved selectivity estimate for\n\t// multi-column predicates.\n\tOptimizerUseImprovedMultiColumnSelectivityEstimate bool `protobuf:\"varint,129,opt,name=optimizer_use_improved_multi_column_selectivity_estimate,json=optimizerUseImprovedMultiColumnSelectivityEstimate,proto3\" json:\"optimizer_use_improved_multi_column_selectivity_estimate,omitempty\"`\n\t// OptimizerProveImplicationWithVirtualComputedColumns, when true, indicates\n\t// that the optimizer should use virtual computed columns to prove partial\n\t// index implication.\n\tOptimizerProveImplicationWithVirtualComputedColumns bool `protobuf:\"varint,130,opt,name=optimizer_prove_implication_with_virtual_computed_columns,json=optimizerProveImplicationWithVirtualComputedColumns,proto3\" json:\"optimizer_prove_implication_with_virtual_computed_columns,omitempty\"`\n\t// OptimizerPushOffsetIntoIndexJoin, when true, indicates that the optimizer\n\t// should push offset expressions into index joins.\n\tOptimizerPushOffsetIntoIndexJoin bool `protobuf:\"varint,132,opt,name=optimizer_push_offset_into_index_join,json=optimizerPushOffsetIntoIndexJoin,proto3\" json:\"optimizer_push_offset_into_index_join,omitempty\"`\n\t// PlanCacheMode indicates the method that the optimizer should use to choose\n\t// between a custom and generic query plan.\n\tPlanCacheMode PlanCacheMode `protobuf:\"varint,133,opt,name=plan_cache_mode,json=planCacheMode,proto3,enum=cockroach.sql.sessiondatapb.PlanCacheMode\" json:\"plan_cache_mode,omitempty\"`\n\t// OptimizerUsePolymorphicParameterFix, when true, causes the optimizer to\n\t// validate a routine's polymorphic parameters during overload resolution\n\t// and type-checking.\n\tOptimizerUsePolymorphicParameterFix bool `protobuf:\"varint,134,opt,name=optimizer_use_polymorphic_parameter_fix,json=optimizerUsePolymorphicParameterFix,proto3\" json:\"optimizer_use_polymorphic_parameter_fix,omitempty\"`\n\t// OriginIDForLogicalDataReplication is an identifier for the cluster that\n\t// originally wrote the data that are being written in this session. An\n\t// originID of 0 (the default) identifies a local write, 1 identifies a remote\n\t// write of unspecified origin, and 2+ are reserved to identify remote writes\n\t// from specific clusters.\n\tOriginIDForLogicalDataReplication uint32 `protobuf:\"varint,135,opt,name=origin_id_for_logical_data_replication,json=originIdForLogicalDataReplication,proto3\" json:\"origin_id_for_logical_data_replication,omitempty\"`\n\t// EnableCreateStatsUsingExtremesBoolEnum, when true, allows the use of CREATE\n\t// STATISTICS .. USING EXTREMES on bool and enum columns.\n\tEnableCreateStatsUsingExtremesBoolEnum bool `protobuf:\"varint,136,opt,name=enable_create_stats_using_extremes_bool_enum,json=enableCreateStatsUsingExtremesBoolEnum,proto3\" json:\"enable_create_stats_using_extremes_bool_enum,omitempty\"`\n\t// OptimizerUseMergedPartialStatistics indicates whether we should use\n\t// statistics merged from partial and full statistics for cardinality\n\t// estimation in the optimizer.\n\tOptimizerUseMergedPartialStatistics bool `protobuf:\"varint,137,opt,name=optimizer_use_merged_partial_statistics,json=optimizerUseMergedPartialStatistics,proto3\" json:\"optimizer_use_merged_partial_statistics,omitempty\"`\n\t// OptimizerUseConditionalHoistFix, when true, prevents the optimizer from\n\t// hoisting a volatile expression that is conditionally executed by a CASE,\n\t// COALESCE, or IFERR expression.\n\tOptimizerUseConditionalHoistFix bool `protobuf:\"varint,138,opt,name=optimizer_use_conditional_hoist_fix,json=optimizerUseConditionalHoistFix,proto3\" json:\"optimizer_use_conditional_hoist_fix,omitempty\"`\n\t// OptimizerPushLimitIntoProjectFilteredScan, when true, indicates that the\n\t// optimizer should push limit expressions into projects of filtered scans.\n\tOptimizerPushLimitIntoProjectFilteredScan bool `protobuf:\"varint,139,opt,name=optimizer_push_limit_into_project_filtered_scan,json=optimizerPushLimitIntoProjectFilteredScan,proto3\" json:\"optimizer_push_limit_into_project_filtered_scan,omitempty\"`\n\t// OriginTimestampForLogicalDataReplication is the mvcc timestamp the data\n\t// written in this session were originally written with before being\n\t// replicated via Logical Data Replication.\n\tOriginTimestampForLogicalDataReplication hlc.Timestamp `protobuf:\"bytes,140,opt,name=origin_timestamp_for_logical_data_replication,json=originTimestampForLogicalDataReplication,proto3\" json:\"origin_timestamp_for_logical_data_replication\"`\n\t// BypassPCRReaderCatalogAOST disables the AOST used by all user queries on\n\t// the PCR reader catalog.\n\tBypassPCRReaderCatalogAOST bool `protobuf:\"varint,141,opt,name=bypass_pcr_reader_catalog_aost,json=bypassPcrReaderCatalogAost,proto3\" json:\"bypass_pcr_reader_catalog_aost,omitempty\"`\n\t// UnsafeAllowTriggersModifyingCascades, when true, allows row-level BEFORE\n\t// triggers to modify or filter rows that are being updated or deleted as\n\t// part of a cascading foreign key action. This is unsafe because it can\n\t// lead to constraint violations.\n\tUnsafeAllowTriggersModifyingCascades bool `protobuf:\"varint,142,opt,name=unsafe_allow_triggers_modifying_cascades,json=unsafeAllowTriggersModifyingCascades,proto3\" json:\"unsafe_allow_triggers_modifying_cascades,omitempty\"`\n\t// DisableVecUnionEagerCancellation disables the eager cancellation that is\n\t// performed by the vectorized engine when transitioning into the draining\n\t// state in some cases.\n\tDisableVecUnionEagerCancellation bool `protobuf:\"varint,143,opt,name=disable_vec_union_eager_cancellation,json=disableVecUnionEagerCancellation,proto3\" json:\"disable_vec_union_eager_cancellation,omitempty\"`\n\t// RecursionDepthLimit is the maximum depth that nested trigger-function calls\n\t// can reach.\n\tRecursionDepthLimit int64 `protobuf:\"varint,144,opt,name=recursion_depth_limit,json=recursionDepthLimit,proto3\" json:\"recursion_depth_limit,omitempty\"`\n\t// DistributeGroupByRowCountThreshold is the minimum number of rows estimated\n\t// to be processed by the GroupBy operator so that we choose to distribute the\n\t// plan because of this aggregator stage of DistSQL processors.\n\tDistributeGroupByRowCountThreshold uint64 `protobuf:\"varint,145,opt,name=distribute_group_by_row_count_threshold,json=distributeGroupByRowCountThreshold,proto3\" json:\"distribute_group_by_row_count_threshold,omitempty\"`\n\t// DistributeSortRowCountThreshold is the minimum number of rows estimated\n\t// to be processed by the Sort operator so that we choose to distribute the\n\t// plan because of this sorter stage of DistSQL processors.\n\tDistributeSortRowCountThreshold uint64 `protobuf:\"varint,146,opt,name=distribute_sort_row_count_threshold,json=distributeSortRowCountThreshold,proto3\" json:\"distribute_sort_row_count_threshold,omitempty\"`\n\t// DistributeScanRowCountThreshold is the minimum number of rows estimated to\n\t// be read by the Scan operator so that we choose to distribute the plan\n\t// because of this TableReader stage of DistSQL processors.\n\tDistributeScanRowCountThreshold uint64 `protobuf:\"varint,147,opt,name=distribute_scan_row_count_threshold,json=distributeScanRowCountThreshold,proto3\" json:\"distribute_scan_row_count_threshold,omitempty\"`\n\t// AlwaysDistributeFullScans determines whether full table scans always force\n\t// the plan to be distributed, regardless of the estimated row count.\n\tAlwaysDistributeFullScans bool `protobuf:\"varint,148,opt,name=always_distribute_full_scans,json=alwaysDistributeFullScans,proto3\" json:\"always_distribute_full_scans,omitempty\"`\n\t// DistributeJoinRowCountThreshold is the minimum number of rows estimated to\n\t// be processed from both inputs by the hash or merge join so that we choose\n\t// to distribute the plan because of this joiner stage of DistSQL processors.\n\tDistributeJoinRowCountThreshold uint64 `protobuf:\"varint,149,opt,name=distribute_join_row_count_threshold,json=distributeJoinRowCountThreshold,proto3\" json:\"distribute_join_row_count_threshold,omitempty\"`\n\t// LegacyVarcharTyping controls the legacy behavior of allowing some invalid\n\t// mix-typed comparisons with VARCHAR types. See #137837, #133037, and\n\t// #132268.\n\tLegacyVarcharTyping bool `protobuf:\"varint,150,opt,name=legacy_varchar_typing,json=legacyVarcharTyping,proto3\" json:\"legacy_varchar_typing,omitempty\"`\n\t// AvoidFullTableScansInMutations indicates whether mutation queries that plan\n\t// full table scans should be avoided.\n\tAvoidFullTableScansInMutations bool `protobuf:\"varint,151,opt,name=avoid_full_table_scans_in_mutations,json=avoidFullTableScansInMutations,proto3\" json:\"avoid_full_table_scans_in_mutations,omitempty\"`\n\t// CatalogDigestStalenessCheckEnabled is used to enable using the catalog\n\t// digest information to do fast memo checks.\n\tCatalogDigestStalenessCheckEnabled bool `protobuf:\"varint,153,opt,name=catalog_digest_staleness_check_enabled,json=catalogDigestStalenessCheckEnabled,proto3\" json:\"catalog_digest_staleness_check_enabled,omitempty\"`\n\t// OptimizerPreferBoundedCardinality instructs the optimizer to prefer query\n\t// plans in which every expression has a bounded cardinality over plans with\n\t// one or more expressions with unbounded cardinality.\n\tOptimizerPreferBoundedCardinality bool `protobuf:\"varint,154,opt,name=optimizer_prefer_bounded_cardinality,json=optimizerPreferBoundedCardinality,proto3\" json:\"optimizer_prefer_bounded_cardinality,omitempty\"`\n\t// OptimizerMinRowCount sets a lower bound on row count estimates for\n\t// relational expressions during query planning. A value of zero indicates no\n\t// lower bound. Note that if this is set to a value greater than zero, a row\n\t// count of zero can still be estimated for expressions with a cardinality of\n\t// zero, e.g., for a contradictory filter.\n\tOptimizerMinRowCount float64 `protobuf:\"fixed64,155,opt,name=optimizer_min_row_count,json=optimizerMinRowCount,proto3\" json:\"optimizer_min_row_count,omitempty\"`\n\t// BufferedWritesEnabled controls whether the buffered writes KV transaction\n\t// protocol is used for user queries on the current session. If this variable\n\t// is modified in an explicit txn, then the change will be applied only to\n\t// future txns on the session.\n\tBufferedWritesEnabled bool `protobuf:\"varint,156,opt,name=buffered_writes_enabled,json=bufferedWritesEnabled,proto3\" json:\"buffered_writes_enabled,omitempty\"`\n\t// OptimizerCheckInputMinRowCount sets a lower bound on row count estimates\n\t// for the buffer scan of FK and uniqueness checks. A value of zero indicates\n\t// no lower bound.\n\tOptimizerCheckInputMinRowCount float64 `protobuf:\"fixed64,157,opt,name=optimizer_check_input_min_row_count,json=optimizerCheckInputMinRowCount,proto3\" json:\"optimizer_check_input_min_row_count,omitempty\"`\n\t// OptimizerPlanLookupJoinsWithReverseScans enables planning for lookup joins\n\t// that use reverse scans to get results in reverse index order on each\n\t// lookup.\n\tOptimizerPlanLookupJoinsWithReverseScans bool `protobuf:\"varint,158,opt,name=optimizer_plan_lookup_joins_with_reverse_scans,json=optimizerPlanLookupJoinsWithReverseScans,proto3\" json:\"optimizer_plan_lookup_joins_with_reverse_scans,omitempty\"`\n\t// RegisterLatchWaitContentionEvents, when true, causes latch wait contention\n\t// events to be registered with the *.contention_events virtual tables. It\n\t// defaults to false in order to avoid registering a large number of\n\t// uninformative latch wait events.\n\tRegisterLatchWaitContentionEvents bool `protobuf:\"varint,159,opt,name=register_latch_wait_contention_events,json=registerLatchWaitContentionEvents,proto3\" json:\"register_latch_wait_contention_events,omitempty\"`\n\t// UseCPutsOnNonUniqueIndexes, when true, indicates that CPuts should be used\n\t// when writing new KVs into the non-unique indexes. It is an escape hatch in\n\t// case our thinking that we don't need the CPut in such a scenario is wrong.\n\t//\n\t// This will have impact regardless of the buffered writes.\n\tUseCPutsOnNonUniqueIndexes bool `protobuf:\"varint,160,opt,name=use_cputs_on_non_unique_indexes,json=useCputsOnNonUniqueIndexes,proto3\" json:\"use_cputs_on_non_unique_indexes,omitempty\"`\n\t// BufferedWritesUseLockingOnNonUniqueIndexes, when true, indicates that\n\t// locking Puts and Dels should be used when writing into the non-unique\n\t// indexes.\n\t//\n\t// This will only have impact when BufferedWritesEnabled is set.\n\tBufferedWritesUseLockingOnNonUniqueIndexes bool `protobuf:\"varint,161,opt,name=buffered_writes_use_locking_on_non_unique_indexes,json=bufferedWritesUseLockingOnNonUniqueIndexes,proto3\" json:\"buffered_writes_use_locking_on_non_unique_indexes,omitempty\"`\n\t// OptimizerUseLockElisionMultipleFamilies, when true, indicates that the lock\n\t// eliding optimization should be enabled for tables with multiple column\n\t// families.\n\t//\n\t// This will only have impact when BufferedWritesEnabled is set.\n\tOptimizerUseLockElisionMultipleFamilies bool `protobuf:\"varint,162,opt,name=optimizer_use_lock_elision_multiple_families,json=optimizerUseLockElisionMultipleFamilies,proto3\" json:\"optimizer_use_lock_elision_multiple_families,omitempty\"`\n\t// OptimizerEnableLockElision, when false, indicates that the lock eliding\n\t// optimization should be disabled for tables with any number of column\n\t// families. It takes precedence over OptimizerUseLockElisionMultipleFamilies.\n\t//\n\t// This will only have impact when BufferedWritesEnabled is set.\n\tOptimizerEnableLockElision bool `protobuf:\"varint,163,opt,name=optimizer_enable_lock_elision,json=optimizerEnableLockElision,proto3\" json:\"optimizer_enable_lock_elision,omitempty\"`\n\t// OptimizerUseDeleteRangeFastPath, when true, indicates that the optimizer\n\t// should try to use the delete range fast-path when possible.\n\tOptimizerUseDeleteRangeFastPath bool `protobuf:\"varint,164,opt,name=optimizer_use_delete_range_fast_path,json=optimizerUseDeleteRangeFastPath,proto3\" json:\"optimizer_use_delete_range_fast_path,omitempty\"`\n\t// AllowCreateTriggerFunctionWithArgvReferences, when true, allows triggers to\n\t// be created with trigger functions that use the TG_ARGV parameter even\n\t// though it currently doesn't have Postgres-compatible 0-based indexing\n\t// behavior.\n\tAllowCreateTriggerFunctionWithArgvReferences bool `protobuf:\"varint,165,opt,name=allow_create_trigger_function_with_argv_references,json=allowCreateTriggerFunctionWithArgvReferences,proto3\" json:\"allow_create_trigger_function_with_argv_references,omitempty\"`\n\t// UsePre_25_2VariadicBuiltins, when true, will treat variadic builtins with a\n\t// types.Any variadic argument as types.AnyElement (the pre-25.2 behavior)\n\tUsePre_25_2VariadicBuiltins bool `protobuf:\"varint,167,opt,name=use_pre_25_2_variadic_builtins,json=usePre252VariadicBuiltins,proto3\" json:\"use_pre_25_2_variadic_builtins,omitempty\"`\n\t// VectorSearchBeamSize controls the number of candidates examined during\n\t// vector index searches. It represents the number of vector partitions that\n\t// are considered at each level of the search tree. Higher values increase\n\t// search accuracy but require more processing resources.\n\tVectorSearchBeamSize int32 `protobuf:\"varint,168,opt,name=vector_search_beam_size,json=vectorSearchBeamSize,proto3\" json:\"vector_search_beam_size,omitempty\"`\n\t// PropagateAdmissionHeaderToLeafTransactions, when true, causes leaf\n\t// transactions to inherit the admission header from the root transaction.\n\tPropagateAdmissionHeaderToLeafTransactions bool `protobuf:\"varint,169,opt,name=propagate_admission_header_to_leaf_transactions,json=propagateAdmissionHeaderToLeafTransactions,proto3\" json:\"propagate_admission_header_to_leaf_transactions,omitempty\"`\n\t// OptimizerUseExistsFilterHoistRule, when true, causes the optimizer to apply\n\t// the HoistUnboundFilterFromExistsSubquery rule to EXISTS conditions.\n\tOptimizerUseExistsFilterHoistRule bool `protobuf:\"varint,170,opt,name=optimizer_use_exists_filter_hoist_rule,json=optimizerUseExistsFilterHoistRule,proto3\" json:\"optimizer_use_exists_filter_hoist_rule,omitempty\"`\n}\n```\nLocalOnlySessionData contains the serializable components of session parameters that only influence execution on the gateway nodes.\n\n```go\nfunc (*LocalOnlySessionData) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *LocalOnlySessionData) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *LocalOnlySessionData) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *LocalOnlySessionData) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*LocalOnlySessionData) ProtoMessage()\n```\n\n```go\nfunc (m *LocalOnlySessionData) Reset()\n```\n\n```go\nfunc (m *LocalOnlySessionData) Size() (n int)\n```\n\n```go\nfunc (m *LocalOnlySessionData) String() string\n```\n\n```go\nfunc (s *LocalOnlySessionData) SystemIdentity() string\n```\nSystemIdentity retrieves the session's system identity. (Identity presented by the client prior to identity mapping.)\n\n```go\nfunc (m *LocalOnlySessionData) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *LocalOnlySessionData) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *LocalOnlySessionData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *LocalOnlySessionData) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *LocalOnlySessionData) XXX_Size() int\n```\n\n```go\nfunc (m *LocalOnlySessionData) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype MigratableSession struct {\n\tSessionData          SessionData                           `protobuf:\"bytes,1,opt,name=session_data,json=sessionData,proto3\" json:\"session_data\"`\n\tLocalOnlySessionData LocalOnlySessionData                  `protobuf:\"bytes,2,opt,name=local_only_session_data,json=localOnlySessionData,proto3\" json:\"local_only_session_data\"`\n\tPreparedStatements   []MigratableSession_PreparedStatement `protobuf:\"bytes,3,rep,name=prepared_statements,json=preparedStatements,proto3\" json:\"prepared_statements\"`\n}\n```\nMigratableSession represents a serialization of a session that can be migrated between SQL sessions.\n\n```go\nfunc (*MigratableSession) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *MigratableSession) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *MigratableSession) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *MigratableSession) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*MigratableSession) ProtoMessage()\n```\n\n```go\nfunc (m *MigratableSession) Reset()\n```\n\n```go\nfunc (m *MigratableSession) Size() (n int)\n```\n\n```go\nfunc (m *MigratableSession) String() string\n```\n\n```go\nfunc (m *MigratableSession) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *MigratableSession) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *MigratableSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *MigratableSession) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *MigratableSession) XXX_Size() int\n```\n\n```go\nfunc (m *MigratableSession) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype MigratableSession_PreparedStatement struct {\n\tName                 string                      `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\tPlaceholderTypeHints []github_com_lib_pq_oid.Oid `protobuf:\"varint,2,rep,packed,name=placeholder_type_hints,json=placeholderTypeHints,proto3,customtype=github.com/lib/pq/oid.Oid\" json:\"placeholder_type_hints,omitempty\"`\n\tSQL                  string                      `protobuf:\"bytes,3,opt,name=sql,proto3\" json:\"sql,omitempty\"`\n}\n```\nPreparedStatement represents a prepared statement in a migratable session.\n\n```go\nfunc (*MigratableSession_PreparedStatement) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*MigratableSession_PreparedStatement) ProtoMessage()\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) Reset()\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) Size() (n int)\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) String() string\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) XXX_Size() int\n```\n\n```go\nfunc (m *MigratableSession_PreparedStatement) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype NewSchemaChangerMode int64\n```\nNewSchemaChangerMode controls if and when the new schema changer (in sql/schemachanger) is in use.\n\n```go\nconst (\n\t// UseNewSchemaChangerOff means that we never use the new schema changer.\n\tUseNewSchemaChangerOff NewSchemaChangerMode = iota\n\t// UseNewSchemaChangerOn means that we use the new schema changer for\n\t// supported statements in implicit transactions, but fall back to the old\n\t// schema changer otherwise.\n\tUseNewSchemaChangerOn\n\t// UseNewSchemaChangerUnsafe means that we attempt to use the new schema\n\t// changer for implemented statements including ones which aren't production\n\t// ready. Used for testing/development.\n\tUseNewSchemaChangerUnsafe\n\t// UseNewSchemaChangerUnsafeAlways means that we attempt to use the new schema\n\t// changer for all statements and return errors for unsupported statements.\n\t// Used for testing/development.\n\tUseNewSchemaChangerUnsafeAlways\n)\n```\n\n```go\nfunc NewSchemaChangerModeFromString(val string) (_ NewSchemaChangerMode, ok bool)\n```\nNewSchemaChangerModeFromString converts a string into a NewSchemaChangerMode\n\n```go\nfunc (m NewSchemaChangerMode) String() string\n```\n\n```go\ntype PlanCacheMode int32\n```\nPlanCacheMode controls the optimizer's decision to use a custom or generic query plan.\n\n```go\nconst (\n\t// PlanCacheModeForceCustom forces the optimizer to use a custom query plan.\n\tPlanCacheModeForceCustom PlanCacheMode = 0\n\t// PlanCacheModeForceCustom forces the optimizer to use a generic query plan.\n\tPlanCacheModeForceGeneric PlanCacheMode = 1\n\t// PlanCacheModeAuto allows the optimizer to automatically choose between a\n\t// custom and generic query plan.\n\tPlanCacheModeAuto PlanCacheMode = 2\n)\n```\n\n```go\nfunc PlanCacheModeFromString(val string) (PlanCacheMode, bool)\n```\nPlanCacheModeFromString converts a string into a PlanCacheMode. False is returned if the conversion was unsuccessful.\n\n```go\nfunc (PlanCacheMode) EnumDescriptor() ([]byte, []int)\n```\n\n```go\nfunc (m PlanCacheMode) String() string\n```\n\n```go\ntype QoSLevel admissionpb.WorkPriority\n```\nQoSLevel controls the level of admission control to use for new SQL requests.\n\n```go\nfunc ParseQoSLevelFromString(val string) (_ QoSLevel, ok bool)\n```\nParseQoSLevelFromString converts a string into a QoSLevel\n\n```go\nfunc (e QoSLevel) String() string\n```\nString prints the string representation of the default\\_transaction\\_quality\\_of\\_service session setting.\n\n```go\nfunc (e QoSLevel) Validate() QoSLevel\n```\nValidate checks for a valid user QoSLevel setting before returning it.\n\n```go\nfunc (e QoSLevel) ValidateInternal() QoSLevel\n```\nValidateInternal checks for a valid internal QoSLevel setting before returning it.\n\n```go\ntype ReplicationMode int32\n```\nReplicationMode represents the replication={0,1,on,off,database} connection parameter in PostgreSQL.\n\n```go\nconst (\n\tReplicationMode_REPLICATION_MODE_DISABLED ReplicationMode = 0\n\tReplicationMode_REPLICATION_MODE_ENABLED  ReplicationMode = 1\n\tReplicationMode_REPLICATION_MODE_DATABASE ReplicationMode = 2\n)\n```\n\n```go\nfunc (ReplicationMode) EnumDescriptor() ([]byte, []int)\n```\n\n```go\nfunc (x ReplicationMode) String() string\n```\n\n```go\ntype SequenceCache map[uint32]*SequenceCacheEntry\n```\nSequenceCache stores sequence values that have already been created in KV and are available to be given out as sequence numbers. Values for sequences are keyed by the descpb.ID of each sequence. These IDs are represented as uint32 to prevent an import cycle with the descpb package. The cache should only be accessed using the provided API.\n\nThe cache ensures that values are invalidated when new descriptor versions are seen. Note that new descriptor versions may not monotonically increase. For example, the sequence schema may be altered in a txn, so the cache sees a new version V and invalidates/repopulates itself. Then, the txn may get rolled back, so the cache will see version V-1 and invalidate/repopulate itself again.\n\n```go\nfunc (sc SequenceCache) NextValue(\n\tseqID uint32, clientVersion uint32, fetchNextValues func() (int64, int64, int64, error),\n) (int64, error)\n```\nNextValue fetches the next value in the sequence cache. If the values in the cache have all been given out or if the descriptor version has changed, then fetchNextValues() is used to repopulate the cache.\n\n```go\ntype SequenceCacheEntry struct {\n\t// CachedVersion stores the descpb.DescriptorVersion that cached values are associated with.\n\t// The version is checked to determine if cache needs to be invalidated. The version is stored as\n\t// a uint32 to prevent an import cycle with the descpb package.\n\tCachedVersion uint32 `protobuf:\"varint,1,opt,name=cached_version,json=cachedVersion,proto3\" json:\"cached_version,omitempty\"`\n\t// CurrentValue stores the present value of the sequence to be given out.\n\tCurrentValue int64 `protobuf:\"varint,2,opt,name=current_value,json=currentValue,proto3\" json:\"current_value,omitempty\"`\n\t// Increment stores the amount to Increment the currentVal by each time the\n\t// currentVal is used. This value corresponds to descpb.TableDescriptor_SequenceOpts.Increment.\n\tIncrement int64 `protobuf:\"varint,3,opt,name=increment,proto3\" json:\"increment,omitempty\"`\n\t// NumValues represents the number of values to cache. The cache is considered\n\t// to be empty when NumValues is 0.\n\tNumValues int64 `protobuf:\"varint,4,opt,name=num_values,json=numValues,proto3\" json:\"num_values,omitempty\"`\n}\n```\nSequenceCacheEntry is an entry in a SequenceCache.\n\n```go\nfunc (*SequenceCacheEntry) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SequenceCacheEntry) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *SequenceCacheEntry) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *SequenceCacheEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*SequenceCacheEntry) ProtoMessage()\n```\n\n```go\nfunc (m *SequenceCacheEntry) Reset()\n```\n\n```go\nfunc (m *SequenceCacheEntry) Size() (n int)\n```\n\n```go\nfunc (m *SequenceCacheEntry) String() string\n```\n\n```go\nfunc (m *SequenceCacheEntry) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *SequenceCacheEntry) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SequenceCacheEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *SequenceCacheEntry) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SequenceCacheEntry) XXX_Size() int\n```\n\n```go\nfunc (m *SequenceCacheEntry) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SequenceCacheNode struct {\n\t// contains filtered or unexported fields\n}\n```\nSequenceCacheNode stores sequence values at a per-node level The cache stores sequence values that have already been created in KV and are available to be given out as sequence numbers. Values for sequences are keyed by the descpb.ID of each sequence. These IDs are represented as uint32 to prevent an import cycle with the descpb package.\n\n```go\nfunc NewSequenceCacheNode() *SequenceCacheNode\n```\nNewSequenceCacheNode initializes a new SequenceCacheNode.\n\n```go\nfunc (sc *SequenceCacheNode) NextValue(\n\tseqID catid.DescID, clientVersion uint32, fetchNextValues func() (int64, int64, int64, error),\n) (int64, error)\n```\nNextValue fetches the next value in the sequence cache. If the values in the cache have all been given out or if the descriptor version has changed, then fetchNextValues() is used to repopulate the cache.\n\n```go\ntype SequenceCacheNodeEntry struct {\n\t// contains filtered or unexported fields\n}\n```\nSequenceCacheNodeEntry embeds the existing SequenceCacheEntry struct that session-level sequence caching currently utilizes, and also includes a mutex.\n\n```go\ntype SequenceState struct {\n\tSeqs []*SequenceState_Seq `protobuf:\"bytes,1,rep,name=seqs,proto3\" json:\"seqs,omitempty\"`\n\t// last_seq_incremented is the id of the last sequence incremented by the\n\t// session. This field is filled in iff seqs is not empty.\n\tLastSeqIncremented uint32 `protobuf:\"varint,2,opt,name=last_seq_incremented,json=lastSeqIncremented,proto3\" json:\"last_seq_incremented,omitempty\"`\n}\n```\nSequenceState is used to marshall the sessiondata.SequenceState struct.\n\n```go\nfunc (*SequenceState) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SequenceState) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *SequenceState) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *SequenceState) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*SequenceState) ProtoMessage()\n```\n\n```go\nfunc (m *SequenceState) Reset()\n```\n\n```go\nfunc (m *SequenceState) Size() (n int)\n```\n\n```go\nfunc (m *SequenceState) String() string\n```\n\n```go\nfunc (m *SequenceState) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *SequenceState) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SequenceState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *SequenceState) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SequenceState) XXX_Size() int\n```\n\n```go\nfunc (m *SequenceState) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SequenceState_Seq struct {\n\tSeqID     uint32 `protobuf:\"varint,1,opt,name=seq_id,json=seqId,proto3\" json:\"seq_id,omitempty\"`\n\tLatestVal int64  `protobuf:\"varint,2,opt,name=latest_val,json=latestVal,proto3\" json:\"latest_val,omitempty\"`\n}\n```\nSeq represents the last value of one sequence modified by the session.\n\n```go\nfunc (*SequenceState_Seq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SequenceState_Seq) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *SequenceState_Seq) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *SequenceState_Seq) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*SequenceState_Seq) ProtoMessage()\n```\n\n```go\nfunc (m *SequenceState_Seq) Reset()\n```\n\n```go\nfunc (m *SequenceState_Seq) Size() (n int)\n```\n\n```go\nfunc (m *SequenceState_Seq) String() string\n```\n\n```go\nfunc (m *SequenceState_Seq) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *SequenceState_Seq) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SequenceState_Seq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *SequenceState_Seq) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SequenceState_Seq) XXX_Size() int\n```\n\n```go\nfunc (m *SequenceState_Seq) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SerialNormalizationMode int64\n```\nSerialNormalizationMode controls if and when the Executor uses DistSQL. NB: The values of the enums must be stable across releases.\n\n```go\nconst (\n\t// SerialUsesRowID means use INT NOT NULL DEFAULT unique_rowid().\n\tSerialUsesRowID SerialNormalizationMode = 0\n\t// SerialUsesVirtualSequences means create a virtual sequence and\n\t// use INT NOT NULL DEFAULT nextval(...).\n\tSerialUsesVirtualSequences SerialNormalizationMode = 1\n\t// SerialUsesSQLSequences means create a regular SQL sequence and\n\t// use INT NOT NULL DEFAULT nextval(...). Each call to nextval()\n\t// is a distributed call to kv. This minimizes the size of gaps\n\t// between successive sequence numbers (which occur due to\n\t// node failures or errors), but the multiple kv calls\n\t// can impact performance negatively.\n\tSerialUsesSQLSequences SerialNormalizationMode = 2\n\t// SerialUsesCachedSQLSequences is identical to SerialUsesSQLSequences with\n\t// the exception that sessions can cache sequence values. This significantly\n\t// reduces contention and distributed calls to kv, which results in better\n\t// performance. Gaps between sequences may be larger as a result of cached\n\t// values being lost to errors and/or node failures.\n\tSerialUsesCachedSQLSequences SerialNormalizationMode = 3\n\t// SerialUsesUnorderedRowID means use INT NOT NULL DEFAULT unordered_unique_rowid().\n\tSerialUsesUnorderedRowID SerialNormalizationMode = 4\n\t// SerialUsesCachedNodeSQLSequences is identical to\n\t// SerialUsesCachedSQLSequences, except the sequence values are cached per\n\t// node instead of per session.\n\tSerialUsesCachedNodeSQLSequences SerialNormalizationMode = 5\n)\n```\n\n```go\nfunc SerialNormalizationModeFromString(val string) (_ SerialNormalizationMode, ok bool)\n```\nSerialNormalizationModeFromString converts a string into a SerialNormalizationMode\n\n```go\nfunc (m SerialNormalizationMode) String() string\n```\n\n```go\ntype SessionData struct {\n\t// Database indicates the \"current\" database for the purpose of resolving\n\t// names.\n\tDatabase string `protobuf:\"bytes,1,opt,name=database,proto3\" json:\"database,omitempty\"`\n\t// ApplicationName is the name of the application running the current\n\t// session. This can be used for logging and per-application statistics.\n\tApplicationName string `protobuf:\"bytes,2,opt,name=application_name,json=applicationName,proto3\" json:\"application_name,omitempty\"`\n\t// User is the name of the user logged into the session.\n\tUserProto github_com_cockroachdb_cockroach_pkg_security_username.SQLUsernameProto `protobuf:\"bytes,3,opt,name=user_proto,json=userProto,proto3,casttype=github.com/cockroachdb/cockroachdb-parser/pkg/security/username.SQLUsernameProto\" json:\"user_proto,omitempty\"`\n\t// DataConversion gives access to the data conversion configuration.\n\tDataConversionConfig DataConversionConfig `protobuf:\"bytes,4,opt,name=data_conversion_config,json=dataConversionConfig,proto3\" json:\"data_conversion_config\"`\n\t// VectorizeMode indicates which kinds of queries to use vectorized execution\n\t// engine for.\n\tVectorizeMode VectorizeExecMode `protobuf:\"varint,5,opt,name=vectorize_mode,json=vectorizeMode,proto3,enum=cockroach.sql.sessiondatapb.VectorizeExecMode\" json:\"vectorize_mode,omitempty\"`\n\t// TestingVectorizeInjectPanics indicates whether random panics are injected\n\t// into the vectorized flow execution. The goal of such behavior is making\n\t// sure that errors that are propagated as panics in the vectorized engine\n\t// are caught in all scenarios.\n\tTestingVectorizeInjectPanics bool `protobuf:\"varint,6,opt,name=testing_vectorize_inject_panics,json=testingVectorizeInjectPanics,proto3\" json:\"testing_vectorize_inject_panics,omitempty\"`\n\t// DefaultIntSize specifies the size in bits or bytes (preferred) of how a\n\t// \"naked\" INT type should be parsed.\n\tDefaultIntSize int32 `protobuf:\"varint,7,opt,name=default_int_size,json=defaultIntSize,proto3\" json:\"default_int_size,omitempty\"`\n\t// The name of the location according to whose current timezone we're going to\n\t// parse timestamps. Used to initialize sessiondata.SessionData.Location on\n\t// the remote nodes.\n\t//\n\t// Note that the current serialization of the time.Location objects as\n\t// strings has many drawbacks which could lead to unstable computation on the\n\t// remote nodes. See #36864 and\n\t// https://github.com/cockroachdb/cockroachdb-parser/pull/55377#issuecomment-707794695\n\t// for more details.\n\tLocation string `protobuf:\"bytes,8,opt,name=location,proto3\" json:\"location,omitempty\"`\n\t// SearchPath is a list of namespaces to search builtins in. Used to\n\t// initialize sessiondata.SessionData.SearchPath on the remote nodes.\n\tSearchPath          []string `protobuf:\"bytes,9,rep,name=search_path,json=searchPath,proto3\" json:\"search_path,omitempty\"`\n\tTemporarySchemaName string   `protobuf:\"bytes,10,opt,name=temporary_schema_name,json=temporarySchemaName,proto3\" json:\"temporary_schema_name,omitempty\"`\n\t// SeqState gives access to the SQL sequences that have been manipulated by\n\t// the session.\n\tSeqState SequenceState `protobuf:\"bytes,11,opt,name=seq_state,json=seqState,proto3\" json:\"seq_state\"`\n\t// WorkMemLimit determines how much RAM (in bytes) a single operation of a\n\t// single query can use before it has to spill to disk.\n\tWorkMemLimit int64 `protobuf:\"varint,12,opt,name=WorkMemLimit,proto3\" json:\"WorkMemLimit,omitempty\"`\n\t// LockTimeout is the maximum amount of time that a query will wait while\n\t// attempting to acquire a lock on a key or while blocking on an existing\n\t// lock in order to perform a non-locking read on a key.\n\tLockTimeout time.Duration `protobuf:\"bytes,15,opt,name=lock_timeout,json=lockTimeout,proto3,stdduration\" json:\"lock_timeout\"`\n\t// Internal is true if this query came from InternalExecutor or an internal\n\t// planner.\n\tInternal bool `protobuf:\"varint,16,opt,name=internal,proto3\" json:\"internal,omitempty\"`\n\t// OnUpdateRehomeRowEnabled controls whether the ON UPDATE rehome_row()\n\t// will actually trigger on row updates.\n\tOnUpdateRehomeRowEnabled bool `protobuf:\"varint,17,opt,name=on_update_rehome_row_enabled,json=onUpdateRehomeRowEnabled,proto3\" json:\"on_update_rehome_row_enabled,omitempty\"`\n\t// JoinReaderOrderingStrategyBatchSize is the size limit on the input rows to\n\t// the joinReader processor (when ordering is required to be maintained) to\n\t// construct a single lookup KV batch.\n\tJoinReaderOrderingStrategyBatchSize int64 `protobuf:\"varint,18,opt,name=join_reader_ordering_strategy_batch_size,json=joinReaderOrderingStrategyBatchSize,proto3\" json:\"join_reader_ordering_strategy_batch_size,omitempty\"`\n\t// ParallelizeMultiKeyLookupJoinsEnabled is true when the join reader should\n\t// parallelize lookup batches under all circumstances. Enabling this will\n\t// increase the speed of lookup joins when each input row might get multiple\n\t// looked up rows at the cost of increased memory usage.\n\tParallelizeMultiKeyLookupJoinsEnabled bool `protobuf:\"varint,19,opt,name=parallelize_multi_key_lookup_joins_enabled,json=parallelizeMultiKeyLookupJoinsEnabled,proto3\" json:\"parallelize_multi_key_lookup_joins_enabled,omitempty\"`\n\t// TrigramSimilarityThreshold configures the value that's used to compare\n\t// trigram similarities to in order to evaluate the string % string overload.\n\tTrigramSimilarityThreshold float64 `protobuf:\"fixed64,20,opt,name=trigram_similarity_threshold,json=trigramSimilarityThreshold,proto3\" json:\"trigram_similarity_threshold,omitempty\"`\n\t// Troubleshooting mode determines whether we refuse to do additional work\n\t// with the query (i.e. collect \u0026 emit telemetry data). Troubleshooting mode\n\t// is disabled by default.\n\tTroubleshootingMode bool `protobuf:\"varint,21,opt,name=troubleshooting_mode,json=troubleshootingMode,proto3\" json:\"troubleshooting_mode,omitempty\"`\n\t// JoinReaderNoOrderingStrategyBatchSize is the size limit on the input rows\n\t// to the joinReader processor (when ordering is **not** required to be\n\t// maintained) to construct a single lookup KV batch.\n\tJoinReaderNoOrderingStrategyBatchSize int64 `protobuf:\"varint,22,opt,name=join_reader_no_ordering_strategy_batch_size,json=joinReaderNoOrderingStrategyBatchSize,proto3\" json:\"join_reader_no_ordering_strategy_batch_size,omitempty\"`\n\t// JoinReaderIndexJoinStrategyBatchSize is the size limit on the input rows\n\t// to the joinReader processor (when performing index joins) to construct a\n\t// single lookup KV batch.\n\tJoinReaderIndexJoinStrategyBatchSize int64 `protobuf:\"varint,23,opt,name=join_reader_index_join_strategy_batch_size,json=joinReaderIndexJoinStrategyBatchSize,proto3\" json:\"join_reader_index_join_strategy_batch_size,omitempty\"`\n\t// IndexJoinStreamerBatchSize is the size limit on the input rows to the\n\t// ColIndexJoin operator (when it is using the Streamer API) to construct a\n\t// single lookup KV batch.\n\tIndexJoinStreamerBatchSize int64 `protobuf:\"varint,24,opt,name=index_join_streamer_batch_size,json=indexJoinStreamerBatchSize,proto3\" json:\"index_join_streamer_batch_size,omitempty\"`\n\t// DirectColumnarScansEnabled indicates whether the COL_BATCH_RESPONSE scan\n\t// format should be used for ScanRequests and ReverseScanRequests whenever\n\t// possible.\n\tDirectColumnarScansEnabled bool `protobuf:\"varint,25,opt,name=direct_columnar_scans_enabled,json=directColumnarScansEnabled,proto3\" json:\"direct_columnar_scans_enabled,omitempty\"`\n\t// DefaultTextSearchConfig configures the default text search configuration\n\t// that is used for builtins like to_tsvector and to_tsquery if no\n\t// text search configuration is explicitly passed in.\n\tDefaultTextSearchConfig string `protobuf:\"bytes,26,opt,name=default_text_search_config,json=defaultTextSearchConfig,proto3\" json:\"default_text_search_config,omitempty\"`\n\t// StreamerAlwaysMaintainOrdering indicates that the SQL users of the Streamer\n\t// should always ask it to maintain the ordering, even when it might not be\n\t// strictly necessary for the query.\n\t//\n\t// This session variable is introduced as a possible workaround in case we\n\t// have more bugs like #113013.\n\tStreamerAlwaysMaintainOrdering bool `protobuf:\"varint,27,opt,name=streamer_always_maintain_ordering,json=streamerAlwaysMaintainOrdering,proto3\" json:\"streamer_always_maintain_ordering,omitempty\"`\n\t// StreamerInOrderEagerMemoryUsageFraction controls the fraction of the\n\t// streamer's memory budget that might be used for issuing requests eagerly,\n\t// in the InOrder mode.\n\tStreamerInOrderEagerMemoryUsageFraction float64 `protobuf:\"fixed64,28,opt,name=streamer_in_order_eager_memory_usage_fraction,json=streamerInOrderEagerMemoryUsageFraction,proto3\" json:\"streamer_in_order_eager_memory_usage_fraction,omitempty\"`\n\t// StreamerOutOfOrderEagerMemoryUsageFraction controls the fraction of the\n\t// streamer's memory budget that might be used for issuing requests eagerly,\n\t// in the OutOfOrder mode.\n\tStreamerOutOfOrderEagerMemoryUsageFraction float64 `protobuf:\"fixed64,29,opt,name=streamer_out_of_order_eager_memory_usage_fraction,json=streamerOutOfOrderEagerMemoryUsageFraction,proto3\" json:\"streamer_out_of_order_eager_memory_usage_fraction,omitempty\"`\n\t// StreamerHeadOfLineOnlyFraction controls the fraction of the available\n\t// streamer's memory budget that will be used to set the TargetBytes limit on\n\t// head-of-the-line request in case the \"eager\" memory usage limit has been\n\t// exceeded.\n\tStreamerHeadOfLineOnlyFraction float64 `protobuf:\"fixed64,30,opt,name=streamer_head_of_line_only_fraction,json=streamerHeadOfLineOnlyFraction,proto3\" json:\"streamer_head_of_line_only_fraction,omitempty\"`\n\t// DistSQLPlanGatewayBias controls the factor of times more partition spans\n\t// the gateway node is allowed to be assigned in the absence of a better\n\t// choice relative to the distribution of partition spans on other eligible\n\t// instances. Refer to `shouldPickGateway` for more details.\n\t//\n\t// This field is in SessionData because that is the format in which a job\n\t// serializes and stores session variables at the time of job creation. A job\n\t// could be adopted by any node in the cluster (not necessarily the gateway)\n\t// and so we will need this information available on all nodes.\n\tDistsqlPlanGatewayBias int64 `protobuf:\"varint,31,opt,name=distsql_plan_gateway_bias,json=distsqlPlanGatewayBias,proto3\" json:\"distsql_plan_gateway_bias,omitempty\"`\n\t// StreamerEnabled controls whether the Streamer API can be used.\n\tStreamerEnabled bool `protobuf:\"varint,32,opt,name=streamer_enabled,json=streamerEnabled,proto3\" json:\"streamer_enabled,omitempty\"`\n\t// DeadlockTimeout specifies the amount of time before pushing the lock holder\n\t// for deadlock detection.\n\tDeadlockTimeout time.Duration `protobuf:\"bytes,33,opt,name=deadlock_timeout,json=deadlockTimeout,proto3,stdduration\" json:\"deadlock_timeout\"`\n}\n```\nSessionData contains session parameters that are easily serializable and are required to be propagated to the remote nodes for the correct execution of DistSQL flows.\n\n```go\nfunc (*SessionData) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SessionData) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *SessionData) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *SessionData) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*SessionData) ProtoMessage()\n```\n\n```go\nfunc (m *SessionData) Reset()\n```\n\n```go\nfunc (m *SessionData) Size() (n int)\n```\n\n```go\nfunc (m *SessionData) String() string\n```\n\n```go\nfunc (m *SessionData) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (s *SessionData) User() username.SQLUsername\n```\nUser retrieves the current user.\n\n```go\nfunc (m *SessionData) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SessionData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *SessionData) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SessionData) XXX_Size() int\n```\n\n```go\nfunc (m *SessionData) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SessionRevivalToken struct {\n\t// The payload to sign. This uses raw bytes so the data being signed is\n\t// deterministic and not dependent on the proto version.\n\tPayload []byte `protobuf:\"bytes,1,opt,name=payload,proto3\" json:\"payload,omitempty\"`\n\t// The signature of the payload, signed using the new signing key.\n\tSignature []byte `protobuf:\"bytes,2,opt,name=signature,proto3\" json:\"signature,omitempty\"`\n}\n```\nSessionRevivalToken is an opaque piece of data that can be used to authenticate a new SQL session for the user who created this token.\n\n```go\nfunc (*SessionRevivalToken) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SessionRevivalToken) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *SessionRevivalToken) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *SessionRevivalToken) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*SessionRevivalToken) ProtoMessage()\n```\n\n```go\nfunc (m *SessionRevivalToken) Reset()\n```\n\n```go\nfunc (m *SessionRevivalToken) Size() (n int)\n```\n\n```go\nfunc (m *SessionRevivalToken) String() string\n```\n\n```go\nfunc (m *SessionRevivalToken) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *SessionRevivalToken) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SessionRevivalToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *SessionRevivalToken) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SessionRevivalToken) XXX_Size() int\n```\n\n```go\nfunc (m *SessionRevivalToken) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SessionRevivalToken_Payload struct {\n\t// The SQL user who can use this token to authenticate.\n\tUser string `protobuf:\"bytes,1,opt,name=user,proto3\" json:\"user,omitempty\"`\n\t// The algorithm used to sign the payload. Can be either Ed25519 or RSA.\n\tAlgorithm string `protobuf:\"bytes,2,opt,name=algorithm,proto3\" json:\"algorithm,omitempty\"`\n\t// The time that this token is no longer considered valid.\n\tExpiresAt *types.Timestamp `protobuf:\"bytes,3,opt,name=expires_at,json=expiresAt,proto3\" json:\"expires_at,omitempty\"`\n\t// The time that this token was created.\n\tIssuedAt *types.Timestamp `protobuf:\"bytes,4,opt,name=issued_at,json=issuedAt,proto3\" json:\"issued_at,omitempty\"`\n}\n```\nPayload is defined as a separate type so that it’s easier to sign.\n\n```go\nfunc (*SessionRevivalToken_Payload) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) MarshalToSizedBuffer(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*SessionRevivalToken_Payload) ProtoMessage()\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) Reset()\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) Size() (n int)\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) String() string\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) XXX_Size() int\n```\n\n```go\nfunc (m *SessionRevivalToken_Payload) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype VectorizeExecMode int32\n```\nVectorizeExecMode controls if and when the Executor executes queries using the columnar execution engine.\n\n```go\nconst (\n\t// VectorizeUnset means the VectorizeExecMode wasn't explicitly set. Having\n\t// the first enum value as zero is required by proto3. This is mapped to\n\t// VectorizeOn.\n\tVectorizeUnset VectorizeExecMode = 0\n\t// DeprecatedVectorized201Auto is only possible for clusters that have been\n\t// upgraded from v21.1 or older and had the old setting of \"201auto\" which\n\t// was mapped to \"on\" in v21.1. It is now an alias for \"on\".\n\tDeprecatedVectorize201Auto VectorizeExecMode = 1\n\t// VectorizeOn means that any supported queries will be run using the\n\t// columnar execution.\n\tVectorizeOn VectorizeExecMode = 2\n\t// VectorizeExperimentalAlways means that we attempt to vectorize all\n\t// queries; unsupported queries will fail. Mostly used for testing.\n\tVectorizeExperimentalAlways VectorizeExecMode = 3\n\t// VectorizeOff means that columnar execution is disabled.\n\tVectorizeOff VectorizeExecMode = 4\n)\n```\n\n```go\nfunc VectorizeExecModeFromString(val string) (VectorizeExecMode, bool)\n```\nVectorizeExecModeFromString converts a string into a VectorizeExecMode. False is returned if the conversion was unsuccessful.\n\n```go\nfunc (VectorizeExecMode) EnumDescriptor() ([]byte, []int)\n```\n\n```go\nfunc (m VectorizeExecMode) String() string\n```\n\n","path":"github.com/cockroachdb/cockroachdb-parser/pkg/sql/sessiondatapb","name":"sessiondatapb","synopsis":"","isRedistributable":true}
