Versions in this module Expand all Collapse all v7 v7.0.4 Jan 30, 2023 v7.0.2 Jan 30, 2023 v7.0.1 Jan 30, 2023 v7.0.0 Jan 30, 2023 Changes in this version + const AssertionFastStr + const AssertionOffStr + const AssertionStrictStr + const AutoCommit + const AutoIncrementIncrement + const AutoIncrementOffset + const AutomaticSpPrivileges + const AvoidTemporalUpgrade + const BigTables + const BinlogDirectNonTransactionalUpdates + const BinlogOrderCommits + const BinlogRowQueryLogEvents + const BlockEncryptionMode + const CTEMaxRecursionDepth + const CharacterSetClient + const CharacterSetConnection + const CharacterSetFilesystem + const CharacterSetResults + const CharacterSetServer + const CharacterSetSystem + const CharsetDatabase + const CheckProxyUsers + const CollationConnection + const CollationDatabase + const CollationServer + const ConcurrencyUnset + const ConnTypeSocket + const ConnTypeTLS + const ConnTypeUnixSocket + const ConnectTimeout + const CoreFile + const DataDir + const DefAdaptiveClosestReadThreshold + const DefAutoAnalyzeEndTime + const DefAutoAnalyzeRatio + const DefAutoAnalyzeStartTime + const DefAutoIncrementIncrement + const DefAutoIncrementOffset + const DefBatchCommit + const DefBatchDelete + const DefBatchInsert + const DefBroadcastJoinThresholdCount + const DefBroadcastJoinThresholdSize + const DefBuildStatsConcurrency + const DefCTEMaxRecursionDepth + const DefChecksumTableConcurrency + const DefCurretTS + const DefDMLBatchSize + const DefDistSQLScanConcurrency + const DefEnableLegacyInstanceScope + const DefEnablePipelinedWindowFunction + const DefEnablePlacementCheck + const DefEnableStrictDoubleTypeCheck + const DefEnableTiDBGCAwareMemoryTrack + const DefEnableVectorizedExpression + const DefEnableWindowFunction + const DefExecutorConcurrency + const DefHostname + const DefIndexJoinBatchSize + const DefIndexLookupConcurrency + const DefIndexLookupJoinConcurrency + const DefIndexLookupSize + const DefIndexSerialScanConcurrency + const DefInitChunkSize + const DefInnodbLockWaitTimeout + const DefMaxAllowedPacket + const DefMaxChunkSize + const DefMaxPagingSize + const DefMaxPreparedStmtCount + const DefMemoryUsageAlarmKeepRecordNum + const DefMemoryUsageAlarmRatio + const DefMinPagingSize + const DefOptAggPushDown + const DefOptCPUFactor + const DefOptCartesianBCJ + const DefOptConcurrencyFactor + const DefOptCopCPUFactor + const DefOptCorrelationExpFactor + const DefOptCorrelationThreshold + const DefOptDescScanFactor + const DefOptDiskFactor + const DefOptEnableCorrelationAdjustment + const DefOptForceInlineCTE + const DefOptInSubqToJoinAndAgg + const DefOptLimitPushDownThreshold + const DefOptMPPOuterJoinFixedBuildSide + const DefOptMemoryFactor + const DefOptNetworkFactor + const DefOptPreferRangeScan + const DefOptScanFactor + const DefOptSeekFactor + const DefOptTiFlashConcurrencyFactor + const DefOptWriteRowID + const DefPasswordReuseHistory + const DefPasswordReuseTime + const DefRCReadCheckTS + const DefRequireSecureTransport + const DefSkipASCIICheck + const DefSkipUTF8Check + const DefStreamCountWhenMaxThreadsNotSet + const DefSysdateIsNow + const DefTiDB3StageDistinctAgg + const DefTiDBAllowAutoRandExplicitInsert + const DefTiDBAllowBatchCop + const DefTiDBAllowMPPExecution + const DefTiDBAllowRemoveAutoInc + const DefTiDBAnalyzePartitionConcurrency + const DefTiDBAnalyzeVersion + const DefTiDBAutoAnalyzePartitionBatchSize + const DefTiDBAutoBuildStatsConcurrency + const DefTiDBBatchDMLIgnoreError + const DefTiDBBatchPendingTiFlashCount + const DefTiDBCapturePlanBaseline + const DefTiDBCommitterConcurrency + const DefTiDBConstraintCheckInPlace + const DefTiDBCostModelVer + const DefTiDBDDLDiskQuota + const DefTiDBDDLEnableDistributeReorg + const DefTiDBDDLErrorCountLimit + const DefTiDBDDLFlashbackConcurrency + const DefTiDBDDLReorgBatchSize + const DefTiDBDDLReorgWorkerCount + const DefTiDBDDLSlowOprThreshold + const DefTiDBDefaultStrMatchSelectivity + const DefTiDBDisableTxnAutoRetry + const DefTiDBEnable1PC + const DefTiDBEnableAnalyzeSnapshot + const DefTiDBEnableAsyncCommit + const DefTiDBEnableAutoAnalyze + const DefTiDBEnableAutoIncrementInGenerated + const DefTiDBEnableBatchDML + const DefTiDBEnableClusteredIndex + const DefTiDBEnableCollectExecutionInfo + const DefTiDBEnableColumnTracking + const DefTiDBEnableExchangePartition + const DefTiDBEnableExternalTSRead + const DefTiDBEnableFastReorg + const DefTiDBEnableGOGCTuner + const DefTiDBEnableHistoricalStatsForCapture + const DefTiDBEnableIndexMerge + const DefTiDBEnableIndexMergeJoin + const DefTiDBEnableLocalTxn + const DefTiDBEnableMDL + const DefTiDBEnableMutationChecker + const DefTiDBEnableNAAJ + const DefTiDBEnableNonPreparedPlanCache + const DefTiDBEnableNoopFuncs + const DefTiDBEnableNoopVariables + const DefTiDBEnableOrderedResultMode + const DefTiDBEnableOuterJoinReorder + const DefTiDBEnablePaging + const DefTiDBEnableParallelApply + const DefTiDBEnablePlanCacheForParamLimit + const DefTiDBEnablePlanReplayerCapture + const DefTiDBEnablePrepPlanCache + const DefTiDBEnablePrepPlanCacheMemoryMonitor + const DefTiDBEnablePseudoForOutdatedStats + const DefTiDBEnableRateLimitAction + const DefTiDBEnableResourceControl + const DefTiDBEnableReusechunk + const DefTiDBEnableStmtSummary + const DefTiDBEnableTSOFollowerProxy + const DefTiDBEnableTelemetry + const DefTiDBEnableTiFlashReadForWriteStmt + const DefTiDBEnableTmpStorageOnOOM + const DefTiDBEnforceMPPExecution + const DefTiDBEvolvePlanBaselines + const DefTiDBEvolvePlanTaskEndTime + const DefTiDBEvolvePlanTaskMaxTime + const DefTiDBEvolvePlanTaskStartTime + const DefTiDBExpensiveQueryTimeThreshold + const DefTiDBExternalTS + const DefTiDBForcePriority + const DefTiDBForeignKeyChecks + const DefTiDBFoundInBinding + const DefTiDBFoundInPlanCache + const DefTiDBGCMaxWaitTime + const DefTiDBGOGCTunerThreshold + const DefTiDBGeneralLog + const DefTiDBGenerateBinaryPlan + const DefTiDBGuaranteeLinearizability + const DefTiDBHashAggFinalConcurrency + const DefTiDBHashAggPartialConcurrency + const DefTiDBHashExchangeWithNewCollation + const DefTiDBHashJoinConcurrency + const DefTiDBHistoricalStatsDuration + const DefTiDBIgnorePreparedCacheCloseStmt + const DefTiDBIndexMergeIntersectionConcurrency + const DefTiDBMPPStoreFailTTL + const DefTiDBMaxAutoAnalyzeTime + const DefTiDBMaxDeltaSchemaCount + const DefTiDBMemOOMAction + const DefTiDBMemQuotaAnalyze + const DefTiDBMemQuotaApplyCache + const DefTiDBMemQuotaBindingCache + const DefTiDBMemQuotaQuery + const DefTiDBMergeJoinConcurrency + const DefTiDBMergePartitionStatsConcurrency + const DefTiDBMetricSchemaRangeDuration + const DefTiDBMetricSchemaStep + const DefTiDBNonPreparedPlanCacheSize + const DefTiDBOptJoinReorderThreshold + const DefTiDBOptPrefixIndexSingleScan + const DefTiDBOptRangeMaxSize + const DefTiDBOptimizerEnableNewOFGB + const DefTiDBOptimizerSelectivityLevel + const DefTiDBPProfSQLCPU + const DefTiDBPartitionPruneMode + const DefTiDBPersistAnalyzeOptions + const DefTiDBPessimisticTransactionAggressiveLocking + const DefTiDBPlacementMode + const DefTiDBPrepPlanCacheMemoryGuardRatio + const DefTiDBPrepPlanCacheSize + const DefTiDBProjectionConcurrency + const DefTiDBQueryLogMaxLen + const DefTiDBRcWriteCheckTs + const DefTiDBReadStaleness + const DefTiDBRedactLog + const DefTiDBRegardNULLAsPoint + const DefTiDBRemoveOrderbyInSubquery + const DefTiDBRestrictedReadOnly + const DefTiDBRetryLimit + const DefTiDBRowFormatV1 + const DefTiDBRowFormatV2 + const DefTiDBScatterRegion + const DefTiDBServerMemoryLimitGCTrigger + const DefTiDBServerMemoryLimitSessMinSize + const DefTiDBShardAllocateStep + const DefTiDBSimplifiedMetrics + const DefTiDBSkewDistinctAgg + const DefTiDBSkipIsolationLevelCheck + const DefTiDBStatsCacheMemQuota + const DefTiDBStatsLoadPseudoTimeout + const DefTiDBStatsLoadSyncWait + const DefTiDBStmtSummaryHistorySize + const DefTiDBStmtSummaryInternalQuery + const DefTiDBStmtSummaryMaxSQLLength + const DefTiDBStmtSummaryMaxStmtCount + const DefTiDBStmtSummaryRefreshInterval + const DefTiDBStoreBatchSize + const DefTiDBStoreLimit + const DefTiDBStreamAggConcurrency + const DefTiDBSuperReadOnly + const DefTiDBSysProcScanConcurrency + const DefTiDBTSOClientBatchMaxWaitTime + const DefTiDBTTLDeleteBatchMaxSize + const DefTiDBTTLDeleteBatchMinSize + const DefTiDBTTLDeleteBatchSize + const DefTiDBTTLDeleteRateLimit + const DefTiDBTTLDeleteWorkerCount + const DefTiDBTTLJobEnable + const DefTiDBTTLJobScheduleWindowEndTime + const DefTiDBTTLJobScheduleWindowStartTime + const DefTiDBTTLScanBatchMaxSize + const DefTiDBTTLScanBatchMinSize + const DefTiDBTTLScanBatchSize + const DefTiDBTTLScanWorkerCount + const DefTiDBTableCacheLease + const DefTiDBTmpTableMaxSize + const DefTiDBTrackAggregateMemoryUsage + const DefTiDBTxnAssertionLevel + const DefTiDBTxnMode + const DefTiDBUseAlloc + const DefTiDBUseFastAnalyze + const DefTiDBUsePlanBaselines + const DefTiDBWaitSplitRegionFinish + const DefTiDBWindowConcurrency + const DefTiFlashFastScan + const DefTiFlashFineGrainedShuffleBatchSize + const DefTiFlashFineGrainedShuffleStreamCount + const DefTiFlashMaxThreads + const DefTimestamp + const DefTimestampFloat + const DefWaitSplitRegionTimeout + const DefWaitTimeout + const DefaultAuthPlugin + const DefaultPasswordLifetime + const DefaultWeekFormat + const DelayKeyWrite + const DisconnectOnExpiredPassword + const EndMarkersInJSON + const EnforceGtidConsistency + const ErrorCount + const Flush + const FlushTime + const ForeignKeyChecks + const FullDayTimeFormat + const GeneralLog + const GlobalConfigEnableTopSQL + const GlobalConfigSourceID + const GroupConcatMaxLen + const Hostname + const Identity + const InitConnect + const InnodbAdaptiveFlushing + const InnodbAdaptiveHashIndex + const InnodbBufferPoolDumpAtShutdown + const InnodbBufferPoolDumpNow + const InnodbBufferPoolLoadAbort + const InnodbBufferPoolLoadNow + const InnodbCmpPerIndexEnabled + const InnodbCommitConcurrency + const InnodbDisableSortFileCache + const InnodbFastShutdown + const InnodbFilePerTable + const InnodbFtEnableStopword + const InnodbLockWaitTimeout + const InnodbLogCompressedPages + const InnodbOptimizeFullTextOnly + const InnodbPrintAllDeadlocks + const InnodbRandomReadAhead + const InnodbStatsAutoRecalc + const InnodbStatsOnMetadata + const InnodbStatsPersistent + const InnodbStatusOutput + const InnodbStatusOutputLocks + const InnodbStrictMode + const InnodbSupportXA + const InnodbTableLocks + const IntOnly + const InteractiveTimeout + const KeepFilesOnCreate + const LastInsertID + const LocalInFile + const LogBin + const LogBinTrustFunctionCreators + const LogQueriesNotUsingIndexes + const LogSlowAdminStatements + const LogSlowSlaveStatements + const LowPriorityUpdates + const LowerCaseTableNames + const MasterVerifyChecksum + const MaxAllowedPacket + const MaxConfigurableConcurrency + const MaxConnectErrors + const MaxConnections + const MaxDDLReorgBatchSize + const MaxExecutionTime + const MaxPreparedStmtCount + const MaxSortLength + const MaxSpRecursionDepth + const MaxTiDBStatsCacheMemQuota + const MaxUserConnections + const MinDDLReorgBatchSize + const MinExpensiveQueryTimeThreshold + const MyISAMUseMmap + const NetBufferLength + const NetWriteTimeout + const OOMActionCancel + const OOMActionLog + const Off + const OffInt + const OfflineMode + const OldAlterTable + const OldPasswords + const On + const OnInt + const OptimizerSwitch + const PasswordReuseHistory + const PasswordReuseTime + const PerformanceSchema + const PlacementModeIgnore + const PlacementModeStrict + const PluginDir + const PluginLoad + const Port + const Profiling + const PseudoSlaveMode + const QueryCacheSize + const QueryCacheType + const QueryCacheWlockInvalidate + const RandSeed1 + const RandSeed2 + const ReadOnly + const RelayLogPurge + const RequireSecureTransport + const SQLAutoIsNull + const SQLBigSelects + const SQLLogBin + const SQLModeVar + const SQLNotes + const SQLQuoteShowCreate + const SQLRequirePrimaryKey + const SQLSafeUpdates + const SQLSelectLimit + const SQLWarnings + const ScopeGlobal + const ScopeInstance + const ScopeNone + const ScopeSession + const SecureAuth + const SessionTrackGtids + const ShowOldTemporals + const SkipNameResolve + const SlaveAllowBatching + const SlaveCompressedProtocol + const SlowLogBackoffDetail + const SlowLogBackoffTotal + const SlowLogBinaryPlan + const SlowLogBinaryPlanPrefix + const SlowLogCompileTimeStr + const SlowLogConnIDStr + const SlowLogCopBackoffPrefix + const SlowLogCopProcAddr + const SlowLogCopProcAvg + const SlowLogCopProcMax + const SlowLogCopProcP90 + const SlowLogCopWaitAddr + const SlowLogCopWaitAvg + const SlowLogCopWaitMax + const SlowLogCopWaitP90 + const SlowLogDBStr + const SlowLogDigestStr + const SlowLogDiskMax + const SlowLogExecRetryCount + const SlowLogExecRetryTime + const SlowLogHasMoreResults + const SlowLogHostStr + const SlowLogIndexNamesStr + const SlowLogIsExplicitTxn + const SlowLogIsInternalStr + const SlowLogIsSyncStatsFailed + const SlowLogIsWriteCacheTable + const SlowLogKVTotal + const SlowLogMemMax + const SlowLogNumCopTasksStr + const SlowLogOptimizeTimeStr + const SlowLogPDTotal + const SlowLogParseTimeStr + const SlowLogPlan + const SlowLogPlanDigest + const SlowLogPlanFromBinding + const SlowLogPlanFromCache + const SlowLogPlanPrefix + const SlowLogPlanSuffix + const SlowLogPreProcSubQueryTimeStr + const SlowLogPrepared + const SlowLogPreprocSubQueriesStr + const SlowLogPrevStmt + const SlowLogPrevStmtPrefix + const SlowLogQuerySQLStr + const SlowLogQueryTimeStr + const SlowLogResultRows + const SlowLogRewriteTimeStr + const SlowLogRowPrefixStr + const SlowLogSQLSuffixStr + const SlowLogSpaceMarkStr + const SlowLogStartPrefixStr + const SlowLogStatsInfoStr + const SlowLogSucc + const SlowLogTimeStr + const SlowLogTxnStartTSStr + const SlowLogUserAndHostStr + const SlowLogUserStr + const SlowLogWaitTSTimeStr + const SlowLogWarnings + const SlowLogWriteSQLRespTotal + const SlowQueryLog + const Socket + const SuperReadOnly + const SyncBinlog + const SystemTimeZone + const TableDefinitionCache + const ThreadPoolSize + const TiDBAdaptiveClosestReadThreshold + const TiDBAllowAutoRandExplicitInsert + const TiDBAllowBatchCop + const TiDBAllowFallbackToTiKV + const TiDBAllowFunctionForExpressionIndex + const TiDBAllowMPPExecution + const TiDBAllowRemoveAutoInc + const TiDBAnalyzePartitionConcurrency + const TiDBAnalyzeVersion + const TiDBAutoAnalyzeEndTime + const TiDBAutoAnalyzePartitionBatchSize + const TiDBAutoAnalyzeRatio + const TiDBAutoAnalyzeStartTime + const TiDBAutoBuildStatsConcurrency + const TiDBBCJThresholdCount + const TiDBBCJThresholdSize + const TiDBBackOffWeight + const TiDBBackoffLockFast + const TiDBBatchCommit + const TiDBBatchDelete + const TiDBBatchInsert + const TiDBBatchPendingTiFlashCount + const TiDBBuildStatsConcurrency + const TiDBCDCWriteSource + const TiDBCapturePlanBaseline + const TiDBCheckMb4ValueInUTF8 + const TiDBChecksumTableConcurrency + const TiDBCommitterConcurrency + const TiDBConfig + const TiDBConstraintCheckInPlace + const TiDBConstraintCheckInPlacePessimistic + const TiDBCostModelVersion + const TiDBCurrentTS + const TiDBDDLDiskQuota + const TiDBDDLEnableDistributeReorg + const TiDBDDLEnableFastReorg + const TiDBDDLErrorCountLimit + const TiDBDDLFlashbackConcurrency + const TiDBDDLReorgBatchSize + const TiDBDDLReorgPriority + const TiDBDDLReorgWorkerCount + const TiDBDDLSlowOprThreshold + const TiDBDMLBatchSize + const TiDBDefaultStrMatchSelectivity + const TiDBDisableColumnTrackingTime + const TiDBDisableTxnAutoRetry + const TiDBDistSQLScanConcurrency + const TiDBEnable1PC + const TiDBEnableAnalyzeSnapshot + const TiDBEnableAsyncCommit + const TiDBEnableAutoAnalyze + const TiDBEnableAutoIncrementInGenerated + const TiDBEnableBatchDML + const TiDBEnableCascadesPlanner + const TiDBEnableChunkRPC + const TiDBEnableClusteredIndex + const TiDBEnableCollectExecutionInfo + const TiDBEnableColumnTracking + const TiDBEnableDDL + const TiDBEnableEnhancedSecurity + const TiDBEnableExchangePartition + const TiDBEnableExtendedStats + const TiDBEnableExternalTSRead + const TiDBEnableFastAnalyze + const TiDBEnableForeignKey + const TiDBEnableGCAwareMemoryTrack + const TiDBEnableGOGCTuner + const TiDBEnableHistoricalStats + const TiDBEnableHistoricalStatsForCapture + const TiDBEnableIndexMerge + const TiDBEnableIndexMergeJoin + const TiDBEnableLegacyInstanceScope + const TiDBEnableListTablePartition + const TiDBEnableLocalTxn + const TiDBEnableMDL + const TiDBEnableMutationChecker + const TiDBEnableNewCostInterface + const TiDBEnableNonPreparedPlanCache + const TiDBEnableNoopFuncs + const TiDBEnableNoopVariables + const TiDBEnableOrderedResultMode + const TiDBEnablePaging + const TiDBEnableParallelApply + const TiDBEnablePipelinedWindowFunction + const TiDBEnablePlanCacheForParamLimit + const TiDBEnablePlanReplayerCapture + const TiDBEnablePlanReplayerContinuesCapture + const TiDBEnablePrepPlanCache + const TiDBEnablePrepPlanCacheMemoryMonitor + const TiDBEnablePseudoForOutdatedStats + const TiDBEnableRateLimitAction + const TiDBEnableResourceControl + const TiDBEnableReusechunk + const TiDBEnableSlowLog + const TiDBEnableStmtSummary + const TiDBEnableStrictDoubleTypeCheck + const TiDBEnableTSOFollowerProxy + const TiDBEnableTablePartition + const TiDBEnableTelemetry + const TiDBEnableTiFlashReadForWriteStmt + const TiDBEnableTmpStorageOnOOM + const TiDBEnableTopSQL + const TiDBEnableUnsafeSubstitute + const TiDBEnableVectorizedExpression + const TiDBEnableWindowFunction + const TiDBEnforceMPPExecution + const TiDBEvolvePlanBaselines + const TiDBEvolvePlanTaskEndTime + const TiDBEvolvePlanTaskMaxTime + const TiDBEvolvePlanTaskStartTime + const TiDBExecutorConcurrency + const TiDBExpensiveQueryTimeThreshold + const TiDBExternalTS + const TiDBForcePriority + const TiDBFoundInBinding + const TiDBFoundInPlanCache + const TiDBGCConcurrency + const TiDBGCEnable + const TiDBGCLifetime + const TiDBGCMaxWaitTime + const TiDBGCRunInterval + const TiDBGCScanLockMode + const TiDBGOGCTunerThreshold + const TiDBGeneralLog + const TiDBGenerateBinaryPlan + const TiDBGuaranteeLinearizability + const TiDBHashAggFinalConcurrency + const TiDBHashAggPartialConcurrency + const TiDBHashExchangeWithNewCollation + const TiDBHashJoinConcurrency + const TiDBHistoricalStatsDuration + const TiDBIgnorePreparedCacheCloseStmt + const TiDBIndexJoinBatchSize + const TiDBIndexJoinDoubleReadPenaltyCostRate + const TiDBIndexLookupConcurrency + const TiDBIndexLookupJoinConcurrency + const TiDBIndexLookupSize + const TiDBIndexMergeIntersectionConcurrency + const TiDBIndexSerialScanConcurrency + const TiDBInitChunkSize + const TiDBIsolationReadEngines + const TiDBLastDDLInfo + const TiDBLastPlanReplayerToken + const TiDBLastQueryInfo + const TiDBLastTxnInfo + const TiDBLogFileMaxDays + const TiDBLowResolutionTSO + const TiDBMPPStoreFailTTL + const TiDBMaxAutoAnalyzeTime + const TiDBMaxChunkSize + const TiDBMaxDeltaSchemaCount + const TiDBMaxPagingSize + const TiDBMaxTiFlashThreads + const TiDBMemOOMAction + const TiDBMemQuotaAnalyze + const TiDBMemQuotaApplyCache + const TiDBMemQuotaBindingCache + const TiDBMemQuotaQuery + const TiDBMemoryDebugModeAlarmRatio + const TiDBMemoryDebugModeMinHeapInUse + const TiDBMemoryUsageAlarmKeepRecordNum + const TiDBMemoryUsageAlarmRatio + const TiDBMergeJoinConcurrency + const TiDBMergePartitionStatsConcurrency + const TiDBMetricSchemaRangeDuration + const TiDBMetricSchemaStep + const TiDBMinPagingSize + const TiDBMultiStatementMode + const TiDBNonPreparedPlanCacheSize + const TiDBNonTransactionalIgnoreError + const TiDBOpt3StageDistinctAgg + const TiDBOptAggPushDown + const TiDBOptCPUFactor + const TiDBOptCartesianBCJ + const TiDBOptConcurrencyFactor + const TiDBOptCopCPUFactor + const TiDBOptCorrelationExpFactor + const TiDBOptCorrelationThreshold + const TiDBOptDescScanFactor + const TiDBOptDiskFactor + const TiDBOptDistinctAggPushDown + const TiDBOptEnableCorrelationAdjustment + const TiDBOptForceInlineCTE + const TiDBOptInSubqToJoinAndAgg + const TiDBOptJoinReorderThreshold + const TiDBOptLimitPushDownThreshold + const TiDBOptMPPOuterJoinFixedBuildSide + const TiDBOptMemoryFactor + const TiDBOptNetworkFactor + const TiDBOptPreferRangeScan + const TiDBOptPrefixIndexSingleScan + const TiDBOptProjectionPushDown + const TiDBOptRangeMaxSize + const TiDBOptScanFactor + const TiDBOptSeekFactor + const TiDBOptSkewDistinctAgg + const TiDBOptTiFlashConcurrencyFactor + const TiDBOptWriteRowID + const TiDBOptimizerEnableNAAJ + const TiDBOptimizerEnableNewOnlyFullGroupByCheck + const TiDBOptimizerEnableOuterJoinReorder + const TiDBOptimizerSelectivityLevel + const TiDBPProfSQLCPU + const TiDBPartitionPruneMode + const TiDBPersistAnalyzeOptions + const TiDBPessimisticTransactionAggressiveLocking + const TiDBPlacementMode + const TiDBPrepPlanCacheMemoryGuardRatio + const TiDBPrepPlanCacheSize + const TiDBProjectionConcurrency + const TiDBQueryLogMaxLen + const TiDBRCReadCheckTS + const TiDBRCWriteCheckTs + const TiDBReadConsistency + const TiDBReadStaleness + const TiDBRecordPlanInSlowLog + const TiDBRedactLog + const TiDBRegardNULLAsPoint + const TiDBRemoveOrderbyInSubquery + const TiDBReplicaRead + const TiDBRestrictedReadOnly + const TiDBRetryLimit + const TiDBRowFormatVersion + const TiDBScatterRegion + const TiDBServerMemoryLimit + const TiDBServerMemoryLimitGCTrigger + const TiDBServerMemoryLimitSessMinSize + const TiDBShardAllocateStep + const TiDBSimplifiedMetrics + const TiDBSkipASCIICheck + const TiDBSkipIsolationLevelCheck + const TiDBSkipUTF8Check + const TiDBSlowLogThreshold + const TiDBSlowQueryFile + const TiDBSnapshot + const TiDBSourceID + const TiDBStatsCacheMemQuota + const TiDBStatsLoadPseudoTimeout + const TiDBStatsLoadSyncWait + const TiDBStmtSummaryHistorySize + const TiDBStmtSummaryInternalQuery + const TiDBStmtSummaryMaxSQLLength + const TiDBStmtSummaryMaxStmtCount + const TiDBStmtSummaryRefreshInterval + const TiDBStoreBatchSize + const TiDBStoreLimit + const TiDBStreamAggConcurrency + const TiDBSuperReadOnly + const TiDBSysProcScanConcurrency + const TiDBSysdateIsNow + const TiDBTSOClientBatchMaxWaitTime + const TiDBTTLDeleteBatchSize + const TiDBTTLDeleteRateLimit + const TiDBTTLDeleteWorkerCount + const TiDBTTLJobEnable + const TiDBTTLJobScheduleWindowEndTime + const TiDBTTLJobScheduleWindowStartTime + const TiDBTTLScanBatchSize + const TiDBTTLScanWorkerCount + const TiDBTableCacheLease + const TiDBTmpTableMaxSize + const TiDBTopSQLMaxMetaCount + const TiDBTopSQLMaxTimeSeriesCount + const TiDBTrackAggregateMemoryUsage + const TiDBTxnAssertionLevel + const TiDBTxnCommitBatchSize + const TiDBTxnMode + const TiDBTxnReadTS + const TiDBTxnScope + const TiDBUseAlloc + const TiDBUsePlanBaselines + const TiDBWaitSplitRegionFinish + const TiDBWaitSplitRegionTimeout + const TiDBWindowConcurrency + const TiFlashFastScan + const TiFlashFineGrainedShuffleBatchSize + const TiFlashFineGrainedShuffleStreamCount + const TimeZone + const Timestamp + const TransactionIsolation + const TransactionReadOnly + const TxReadOnly + const TxnIsolation + const TxnIsolationOneShot + const TypeBool + const TypeDuration + const TypeEnum + const TypeFloat + const TypeInt + const TypeStr + const TypeTime + const TypeUnsigned + const UniqueChecks + const ValidatePasswordCheckUserName + const ValidatePasswordDictionary + const ValidatePasswordEnable + const ValidatePasswordLength + const ValidatePasswordMixedCaseCount + const ValidatePasswordNumberCount + const ValidatePasswordPolicy + const ValidatePasswordSpecialCharCount + const Version + const VersionComment + const WaitTimeout + const Warn + const WarnInt + const WarningCount + const WindowingUseHighPrecision + var AutoAnalyzePartitionBatchSize = atomic.NewInt64(DefTiDBAutoAnalyzePartitionBatchSize) + var DDLDiskQuota = atomic.NewUint64(DefTiDBDDLDiskQuota) + var DDLEnableDistributeReorg = atomic.NewBool(DefTiDBDDLEnableDistributeReorg) + var DDLForce2Queue = atomic.NewBool(false) + var DDLSlowOprThreshold = config.GetGlobalConfig().Instance.DDLSlowOprThreshold + var DefTiDBServerMemoryLimit = serverMemoryLimitDefaultValue() + var DefaultStatusVarScopeFlag = ScopeGlobal | ScopeSession + var DisableDDL func() error = nil + var DisableGlobalResourceControlFunc func() = func() + var EnableBatchDML = atomic.NewBool(false) + var EnableColumnTracking = atomic.NewBool(DefTiDBEnableColumnTracking) + var EnableDDL func() error = nil + var EnableFastReorg = atomic.NewBool(DefTiDBEnableFastReorg) + var EnableForeignKey = atomic.NewBool(true) + var EnableGlobalResourceControlFunc func() = func() + var EnableHistoricalStatsForCapture = atomic.NewBool(DefTiDBEnableHistoricalStatsForCapture) + var EnableLocalTxn = atomic.NewBool(DefTiDBEnableLocalTxn) + var EnableMDL = atomic.NewBool(false) + var EnableNoopVariables = atomic.NewBool(DefTiDBEnableNoopVariables) + var EnablePProfSQLCPU = atomic.NewBool(false) + var EnableRCReadCheckTS = atomic.NewBool(false) + var EnableResourceControl = atomic.NewBool(DefTiDBEnableResourceControl) + var EnableTSOFollowerProxy = atomic.NewBool(DefTiDBEnableTSOFollowerProxy) + var EnableTTLJob = atomic.NewBool(DefTiDBTTLJobEnable) + var EnableTmpStorageOnOOM = atomic.NewBool(DefTiDBEnableTmpStorageOnOOM) + var ErrFunctionsNoopImpl = dbterror.ClassVariable.NewStdErr(mysql.ErrNotSupportedYet, pmysql.Message(...)) + var ErrIncorrectScope = dbterror.ClassVariable.NewStd(mysql.ErrIncorrectGlobalLocalVar) + var ErrMaxPreparedStmtCountReached = dbterror.ClassVariable.NewStd(mysql.ErrMaxPreparedStmtCountReached) + var ErrNotValidPassword = dbterror.ClassExecutor.NewStd(mysql.ErrNotValidPassword) + var ErrReadOnly = dbterror.ClassVariable.NewStd(mysql.ErrVariableIsReadonly) + var ErrSnapshotTooOld = dbterror.ClassVariable.NewStd(mysql.ErrSnapshotTooOld) + var ErrStmtNotFound = dbterror.ClassOptimizer.NewStd(mysql.ErrPreparedStmtNotFound) + var ErrTruncatedWrongValue = dbterror.ClassVariable.NewStd(mysql.ErrTruncatedWrongValue) + var ErrUnknownSystemVar = dbterror.ClassVariable.NewStd(mysql.ErrUnknownSystemVariable) + var ErrUnknownTimeZone = dbterror.ClassVariable.NewStd(mysql.ErrUnknownTimeZone) + var ErrUnsupportedIsolationLevel = dbterror.ClassVariable.NewStd(mysql.ErrUnsupportedIsolationLevel) + var ErrUnsupportedValueForVar = dbterror.ClassVariable.NewStd(mysql.ErrUnsupportedValueForVar) + var ErrVariableNoLongerSupported = dbterror.ClassVariable.NewStd(mysql.ErrVariableNoLongerSupported) + var ErrWrongTypeForVar = dbterror.ClassVariable.NewStd(mysql.ErrWrongTypeForVar) + var ErrWrongValueForVar = dbterror.ClassVariable.NewStd(mysql.ErrWrongValueForVar) + var ExpensiveQueryTimeThreshold uint64 = DefTiDBExpensiveQueryTimeThreshold + var FeedbackProbability *atomic2.Float64 + var ForcePriority = int32(DefTiDBForcePriority) + var GAFunction4ExpressionIndex = map[string]struct + var GCMaxWaitTime = atomic.NewInt64(DefTiDBGCMaxWaitTime) + var GOGCTunerThreshold = atomic.NewFloat64(DefTiDBGOGCTunerThreshold) + var GenerateBinaryPlan atomic2.Bool + var GetExternalTimestamp func(ctx context.Context) (uint64, error) + var GetMemQuotaAnalyze func() int64 = nil + var GlobalLogMaxDays = atomic.NewInt32(int32(config.GetGlobalConfig().Log.File.MaxDays)) + var HistoricalStatsDuration = atomic.NewDuration(DefTiDBHistoricalStatsDuration) + var IsSandBoxModeEnabled = atomic.NewBool(false) + var MaxAutoAnalyzeTime = atomic.NewInt64(DefTiDBMaxAutoAnalyzeTime) + var MaxOfMaxAllowedPacket uint64 = 1073741824 + var MaxPreparedStmtCountValue = atomic.NewInt64(DefMaxPreparedStmtCount) + var MaxTSOBatchWaitInterval = atomic.NewFloat64(DefTiDBTSOClientBatchMaxWaitTime) + var MemQuotaBindingCache = atomic.NewInt64(DefTiDBMemQuotaBindingCache) + var MemoryUsageAlarmKeepRecordNum = atomic.NewInt64(DefMemoryUsageAlarmKeepRecordNum) + var MemoryUsageAlarmRatio = atomic.NewFloat64(DefMemoryUsageAlarmRatio) + var OOMAction = atomic.NewString(DefTiDBMemOOMAction) + var PasswordHistory = atomic.NewInt64(DefPasswordReuseHistory) + var PasswordReuseInterval = atomic.NewInt64(DefPasswordReuseTime) + var PasswordValidationLength = atomic.NewInt32(8) + var PasswordValidationMixedCaseCount = atomic.NewInt32(1) + var PasswordValidationSpecialCharCount = atomic.NewInt32(1) + var PasswordValidtaionNumberCount = atomic.NewInt32(1) + var PersistAnalyzeOptions = atomic.NewBool(DefTiDBPersistAnalyzeOptions) + var PreparedPlanCacheMemoryGuardRatio = atomic.NewFloat64(DefTiDBPrepPlanCacheMemoryGuardRatio) + var PreparedStmtCount int64 + var ProcessGeneralLog = atomic.NewBool(false) + var QueryLogMaxLen = atomic.NewInt32(DefTiDBQueryLogMaxLen) + var RestrictedReadOnly = atomic.NewBool(DefTiDBRestrictedReadOnly) + var RunAutoAnalyze = atomic.NewBool(DefTiDBEnableAutoAnalyze) + var SetCharsetVariables = []string + var SetExternalTimestamp func(ctx context.Context, ts uint64) error + var SetGlobalResourceControl atomic.Pointer[func(bool)] + var SetMemQuotaAnalyze func(quota int64) = nil + var SetNamesVariables = []string + var SetPDClientDynamicOption atomic.Pointer[func(string, string)] + var SetStatsCacheCapacity atomic.Value + var StatsCacheMemQuota = atomic.NewInt64(DefTiDBStatsCacheMemQuota) + var StatsLoadPseudoTimeout = atomic.NewBool(DefTiDBStatsLoadPseudoTimeout) + var StatsLoadSyncWait = atomic.NewInt64(DefTiDBStatsLoadSyncWait) + var SwitchMDL func(bool2 bool) error = nil + var TTLDeleteBatchSize = atomic.NewInt64(DefTiDBTTLDeleteBatchSize) + var TTLDeleteRateLimit = atomic.NewInt64(DefTiDBTTLDeleteRateLimit) + var TTLDeleteWorkerCount = atomic.NewInt32(DefTiDBTTLDeleteWorkerCount) + var TTLJobScheduleWindowEndTime = atomic.NewTime(mustParseTime(FullDayTimeFormat, DefTiDBTTLJobScheduleWindowEndTime)) + var TTLJobScheduleWindowStartTime = atomic.NewTime(mustParseTime(FullDayTimeFormat, DefTiDBTTLJobScheduleWindowStartTime)) + var TTLScanBatchSize = atomic.NewInt64(DefTiDBTTLScanBatchSize) + var TTLScanWorkerCount = atomic.NewInt32(DefTiDBTTLScanWorkerCount) + var TableCacheLease = atomic.NewInt64(DefTiDBTableCacheLease) + var VarTiDBSuperReadOnly = atomic.NewBool(DefTiDBSuperReadOnly) + func BoolToOnOff(b bool) string + func CheckSysVarIsRemoved(varName string) error + func GetDDLErrorCountLimit() int64 + func GetDDLFlashbackConcurrency() int32 + func GetDDLReorgBatchSize() int32 + func GetDDLReorgRowFormat() int64 + func GetDDLReorgWorkerCounter() int32 + func GetMaxDeltaSchemaCount() int64 + func GetStatusVars(vars *SessionVars) (map[string]*StatusVal, error) + func GetSysVars() map[string]*SysVar + func IsAdaptiveReplicaReadEnabled() bool + func IsRemovedSysVar(varName string) bool + func OnOffToTrueFalse(str string) string + func RegisterStatistics(s Statistics) + func RegisterSysVar(sv *SysVar) + func SetDDLErrorCountLimit(cnt int64) + func SetDDLFlashbackConcurrency(cnt int32) + func SetDDLReorgBatchSize(cnt int32) + func SetDDLReorgRowFormat(format int64) + func SetDDLReorgWorkerCounter(cnt int32) + func SetEnableAdaptiveReplicaRead(enabled bool) bool + func SetMaxDeltaSchemaCount(cnt int64) + func SetSysVar(name string, value string) + func TiDBOptOn(opt string) bool + func TiDBOptOnOffWarn(opt string) int + func TidbOptInt(opt string, defaultVal int) int + func TidbOptInt64(opt string, defaultVal int64) int64 + func TidbOptUint64(opt string, defaultVal uint64) uint64 + func UnregisterStatistics(s Statistics) + func UnregisterSysVar(name string) + type AssertionLevel int + const AssertionLevelFast + const AssertionLevelOff + const AssertionLevelStrict + type BatchSize struct + IndexJoinBatchSize int + IndexLookupSize int + InitChunkSize int + MaxChunkSize int + MaxPagingSize int + MinPagingSize int + type ClusteredIndexDefMode int + const ClusteredIndexDefModeIntOnly + const ClusteredIndexDefModeOff + const ClusteredIndexDefModeOn + func TiDBOptEnableClustered(opt string) ClusteredIndexDefMode + type Concurrency struct + ExecutorConcurrency int + SourceAddr net.TCPAddr + func (c *Concurrency) DistSQLScanConcurrency() int + func (c *Concurrency) HashAggFinalConcurrency() int + func (c *Concurrency) HashAggPartialConcurrency() int + func (c *Concurrency) HashJoinConcurrency() int + func (c *Concurrency) IndexLookupConcurrency() int + func (c *Concurrency) IndexLookupJoinConcurrency() int + func (c *Concurrency) IndexMergeIntersectionConcurrency() int + func (c *Concurrency) IndexSerialScanConcurrency() int + func (c *Concurrency) MergeJoinConcurrency() int + func (c *Concurrency) ProjectionConcurrency() int + func (c *Concurrency) SetDistSQLScanConcurrency(n int) + func (c *Concurrency) SetHashAggFinalConcurrency(n int) + func (c *Concurrency) SetHashAggPartialConcurrency(n int) + func (c *Concurrency) SetHashJoinConcurrency(n int) + func (c *Concurrency) SetIndexLookupConcurrency(n int) + func (c *Concurrency) SetIndexLookupJoinConcurrency(n int) + func (c *Concurrency) SetIndexMergeIntersectionConcurrency(n int) + func (c *Concurrency) SetIndexSerialScanConcurrency(n int) + func (c *Concurrency) SetMergeJoinConcurrency(n int) + func (c *Concurrency) SetProjectionConcurrency(n int) + func (c *Concurrency) SetStreamAggConcurrency(n int) + func (c *Concurrency) SetWindowConcurrency(n int) + func (c *Concurrency) StreamAggConcurrency() int + func (c *Concurrency) UnionConcurrency() int + func (c *Concurrency) WindowConcurrency() int + type ConnectionInfo struct + ClientIP string + ClientPort string + ClientVersion string + ConnectionID uint64 + ConnectionType string + DB string + Duration float64 + Host string + OSVersion string + PID int + SSLVersion string + ServerID int + ServerIP string + ServerOSLoginUser string + ServerPort int + ServerVersion string + User string + func (connInfo *ConnectionInfo) IsSecureTransport() bool + type GlobalVarAccessor interface + GetGlobalSysVar func(name string) (string, error) + GetTiDBTableValue func(name string) (string, error) + SetGlobalSysVar func(ctx context.Context, name string, value string) error + SetGlobalSysVarOnly func(ctx context.Context, name string, value string, updateLocal bool) error + SetTiDBTableValue func(name, value, comment string) error + type HookContext interface + GetStore func() kv.Storage + type JSONSQLWarnForSlowLog struct + IsExtra bool + Level string + Message string + type MemQuota struct + MemQuotaApplyCache int64 + MemQuotaQuery int64 + type MockGlobalAccessor struct + SessionVars *SessionVars + func NewMockGlobalAccessor() *MockGlobalAccessor + func NewMockGlobalAccessor4Tests() *MockGlobalAccessor + func (m *MockGlobalAccessor) GetGlobalSysVar(name string) (string, error) + func (m *MockGlobalAccessor) GetTiDBTableValue(name string) (string, error) + func (m *MockGlobalAccessor) SetGlobalSysVar(ctx context.Context, name string, value string) (err error) + func (m *MockGlobalAccessor) SetGlobalSysVarOnly(ctx context.Context, name string, value string, _ bool) error + func (m *MockGlobalAccessor) SetTiDBTableValue(name, value, comment string) error + type PartitionPruneMode string + const Dynamic + const DynamicOnly + const Static + const StaticButPrepareDynamic + const StaticOnly + func (p PartitionPruneMode) Update() PartitionPruneMode + func (p PartitionPruneMode) Valid() bool + type PreparedParams []types.Datum + func (pps PreparedParams) String() string + type ReadConsistencyLevel string + const ReadConsistencyStrict + const ReadConsistencyWeak + func (r ReadConsistencyLevel) IsWeak() bool + type RetryInfo struct + DroppedPreparedStmtIDs []uint32 + LastRcReadTS uint64 + Retrying bool + func (r *RetryInfo) AddAutoIncrementID(id int64) + func (r *RetryInfo) AddAutoRandomID(id int64) + func (r *RetryInfo) Clean() + func (r *RetryInfo) GetCurrAutoIncrementID() (int64, bool) + func (r *RetryInfo) GetCurrAutoRandomID() (int64, bool) + func (r *RetryInfo) ResetOffset() + type ReuseChunkPool struct + Alloc chunk.Allocator + type RewritePhaseInfo struct + DurationPreprocessSubQuery time.Duration + DurationRewrite time.Duration + PreprocessSubQueries int + func (r *RewritePhaseInfo) Reset() + type SavepointRecord struct + MemDBCheckpoint *tikv.MemDBCheckpoint + Name string + TxnCtxSavepoint TxnCtxNeedToRestore + type ScopeFlag uint8 + func (s ScopeFlag) String() string + type SequenceState struct + func NewSequenceState() *SequenceState + func (ss *SequenceState) GetAllStates() map[int64]int64 + func (ss *SequenceState) GetLastValue(sequenceID int64) (int64, bool, error) + func (ss *SequenceState) SetAllStates(latestValueMap map[int64]int64) + func (ss *SequenceState) UpdateState(sequenceID, value int64) + type SessionVars struct + ActiveRoles []*auth.RoleIdentity + AllowAggPushDown bool + AllowAutoRandExplicitInsert bool + AllowBatchCop int + AllowCartesianBCJ int + AllowDistinctAggPushDown bool + AllowFallbackToTiKV map[kv.StoreType]struct{} + AllowProjectionPushDown bool + AllowRemoveAutoInc bool + AllowWriteRowID bool + AnalyzePartitionConcurrency int + AnalyzePartitionMergeConcurrency int + AnalyzeVersion int + AssertionLevel AssertionLevel + AutoIncrementIncrement int + AutoIncrementOffset int + BatchCommit bool + BatchDelete bool + BatchInsert bool + BatchPendingTiFlashCount int + BinlogClient *pumpcli.PumpsClient + BroadcastJoinThresholdCount int64 + BroadcastJoinThresholdSize int64 + CDCWriteSource uint64 + CTEMaxRecursionDepth int + ChunkPool ReuseChunkPool + ClientCapability uint32 + CommandValue uint32 + CommonGlobalLoaded bool + ConnectionID uint64 + ConnectionInfo *ConnectionInfo + ConstraintCheckInPlace bool + ConstraintCheckInPlacePessimistic bool + CopTiFlashConcurrencyFactor float64 + CorrelationExpFactor int + CorrelationThreshold float64 + CostModelVersion int + CurrInsertBatchExtraCols [][]types.Datum + CurrInsertValues chunk.Row + CurrentDB string + CurrentDBChanged bool + DDLReorgPriority int + DMLBatchSize int + DefaultStrMatchSelectivity float64 + DisableTxnAutoRetry bool + DiskTracker *memory.Tracker + DurationCompile time.Duration + DurationOptimization time.Duration + DurationParse time.Duration + DurationWaitTS time.Duration + Enable1PC bool + Enable3StageDistinctAgg bool + EnableAnalyzeSnapshot bool + EnableAsyncCommit bool + EnableAutoIncrementInGenerated bool + EnableCascadesPlanner bool + EnableChunkRPC bool + EnableClusteredIndex ClusteredIndexDefMode + EnableCorrelationAdjustment bool + EnableExtendedStats bool + EnableExternalTSRead bool + EnableFastAnalyze bool + EnableIndexMergeJoin bool + EnableLegacyInstanceScope bool + EnableListTablePartition bool + EnableMutationChecker bool + EnableNewCostInterface bool + EnableNonPreparedPlanCache bool + EnableOuterJoinReorder bool + EnablePaging bool + EnableParallelApply bool + EnablePipelinedWindowExec bool + EnablePlanCacheForParamLimit bool + EnablePlanReplayedContinuesCapture bool + EnablePlanReplayerCapture bool + EnablePointGetCache bool + EnablePreparedPlanCache bool + EnablePreparedPlanCacheMemoryMonitor bool + EnablePseudoForOutdatedStats bool + EnableRedactLog bool + EnableReuseCheck bool + EnableSkewDistinctAgg bool + EnableStableResultMode bool + EnableStrictDoubleTypeCheck bool + EnableTablePartition string + EnableTiFlashReadForWriteStmt bool + EnableUnsafeSubstitute bool + EnableVectorizedExpression bool + EnableWindowFunction bool + EnabledRateLimitAction bool + EvolvePlanBaselines bool + ForeignKeyChecks bool + FoundInBinding bool + FoundInPlanCache bool + GlobalVarsAccessor GlobalVarAccessor + GuaranteeLinearizability bool + HashExchangeWithNewCollation bool + IDAllocator autoid.Allocator + IgnorePreparedCacheCloseStmt bool + InRestrictedSQL bool + IndexJoinDoubleReadPenaltyCostRate float64 + InspectionTableCache map[string]TableSnapshot + IsolationReadEngines map[kv.StoreType]struct{} + KVVars *tikvstore.Variables + Killed uint32 + LastDDLInfo sessionstates.LastDDLInfo + LastFoundRows uint64 + LastPlanReplayerToken string + LastQueryInfo sessionstates.QueryInfo + LastTxnInfo string + LastUpdateTime4PC types.Time + LimitPushDownThreshold int64 + LocalTemporaryTables interface{} + LockWaitTimeout int64 + LowResolutionTSO bool + MPPOuterJoinFixedBuildSide bool + MPPStoreFailTTL string + MapHashCode2UniqueID4ExtendedCol map[string]int + MaxAllowedPacket uint64 + MaxExecutionTime uint64 + MemDBFootprint *memory.Tracker + MemTracker *memory.Tracker + MemoryDebugModeAlarmRatio int64 + MemoryDebugModeMinHeapInUse int64 + MetricSchemaRangeDuration int64 + MetricSchemaStep int64 + MultiStatementMode int + NonPreparedPlanCacheSize uint64 + NonTransactionalIgnoreError bool + NoopFuncsMode int + OptPrefixIndexSingleScan bool + OptimizerEnableNAAJ bool + OptimizerEnableNewOnlyFullGroupByCheck bool + OptimizerSelectivityLevel int + OptimizerUseInvisibleIndexes bool + PartitionPruneMode atomic2.String + PessimisticTransactionAggressiveLocking bool + PlacementMode string + PlanColumnID int64 + PlanID int + PlanReplayerFinishedTaskKey map[replayer.PlanReplayerTaskKey]struct{} + PlannerSelectBlockAsName []ast.HintTable + Port string + PreparedParams PreparedParams + PreparedPlanCacheSize uint64 + PreparedStmtNameToID map[string]uint32 + PreparedStmts map[uint32]interface{} + PresumeKeyNotExists bool + PrevFoundInBinding bool + PrevFoundInPlanCache bool + PrevStmt fmt.Stringer + PrimaryKeyRequired bool + ProtectedTSList protectedTSList + RangeMaxSize int64 + RcWriteCheckTS bool + ReadConsistency ReadConsistencyLevel + ReadStaleness time.Duration + RefCountOfStmtCtx stmtctx.ReferenceCount + RegardNULLAsPoint bool + RemoveOrderbyInSubquery bool + ReplicaClosestReadThreshold int64 + RequestSourceType string + ResourceGroupName string + RetryInfo *RetryInfo + RetryLimit int64 + Rng *mathutil.MysqlRng + RowEncoder rowcodec.Encoder + SQLMode mysql.SQLMode + SelectLimit uint64 + SequenceState *SequenceState + ShardAllocateStep int64 + SkipASCIICheck bool + SkipUTF8Check bool + SlowQueryFile string + SnapshotInfoschema interface{} + SnapshotTS uint64 + StartTime time.Time + StatsLoadSyncWait int64 + Status uint16 + StmtCtx *stmtctx.StatementContext + StoreBatchSize int + StrictSQLMode bool + SysErrorCount uint16 + SysWarningCount int + SysdateIsNow bool + TLSConnectionState *tls.ConnectionState + TMPTableSize int64 + TemporaryTableData TemporaryTableData + TiDBEnableExchangePartition bool + TiDBOptJoinReorderThreshold int + TiFlashFastScan bool + TiFlashFineGrainedShuffleBatchSize uint64 + TiFlashFineGrainedShuffleStreamCount int64 + TiFlashMaxThreads int64 + TimeZone *time.Location + TrackAggregateMemoryUsage bool + TxnCtx *TransactionContext + TxnCtxMu sync.Mutex + TxnManager interface{} + TxnMode string + TxnReadTS *TxnReadTS + TxnScope kv.TxnScopeVar + UsePlanBaselines bool + User *auth.UserIdentity + WaitSplitRegionFinish bool + WaitSplitRegionTimeout uint64 + WindowingUseHighPrecision bool + func NewSessionVars(hctx HookContext) *SessionVars + func (s *SessionVars) AddNonPreparedPlanCacheStmt(sql string, stmt interface{}) + func (s *SessionVars) AddPlanReplayerFinishedTaskKey(key replayer.PlanReplayerTaskKey) + func (s *SessionVars) AddPreparedStmt(stmtID uint32, stmt interface{}) error + func (s *SessionVars) AllocNewPlanID() int + func (s *SessionVars) AllocPlanColumnID() int64 + func (s *SessionVars) BuildParserConfig() parser.ParserConfig + func (s *SessionVars) CheckAndGetTxnScope() string + func (s *SessionVars) CheckPlanReplayerFinishedTaskKey(key replayer.PlanReplayerTaskKey) bool + func (s *SessionVars) CleanBuffers() + func (s *SessionVars) CleanupTxnReadTSIfUsed() + func (s *SessionVars) ClearAlloc(alloc *chunk.Allocator, b bool) + func (s *SessionVars) ClearStmtVars() + func (s *SessionVars) DecodeSessionStates(ctx context.Context, sessionStates *sessionstates.SessionStates) (err error) + func (s *SessionVars) EnableEvalTopNEstimationForStrMatch() bool + func (s *SessionVars) EnableForceInlineCTE() bool + func (s *SessionVars) EncodeSessionStates(ctx context.Context, sessionStates *sessionstates.SessionStates) (err error) + func (s *SessionVars) ExchangeChunkStatus() + func (s *SessionVars) GetAllowInSubqToJoinAndAgg() bool + func (s *SessionVars) GetAllowPreferRangeScan() bool + func (s *SessionVars) GetCPUFactor() float64 + func (s *SessionVars) GetCharsetInfo() (charset, collation string) + func (s *SessionVars) GetConcurrencyFactor() float64 + func (s *SessionVars) GetCopCPUFactor() float64 + func (s *SessionVars) GetCurrentShard(count int) int64 + func (s *SessionVars) GetDescScanFactor(tbl *model.TableInfo) float64 + func (s *SessionVars) GetDiskFactor() float64 + func (s *SessionVars) GetEnableCascadesPlanner() bool + func (s *SessionVars) GetEnableIndexMerge() bool + func (s *SessionVars) GetEnablePseudoForOutdatedStats() bool + func (s *SessionVars) GetGlobalSystemVar(ctx context.Context, name string) (string, error) + func (s *SessionVars) GetIsolationReadEngines() map[kv.StoreType]struct{} + func (s *SessionVars) GetMemoryFactor() float64 + func (s *SessionVars) GetNegateStrMatchDefaultSelectivity() float64 + func (s *SessionVars) GetNetworkFactor(tbl *model.TableInfo) float64 + func (s *SessionVars) GetNewChunkWithCapacity(fields []*types.FieldType, capacity int, maxCachesize int, ...) *chunk.Chunk + func (s *SessionVars) GetNextPreparedStmtID() uint32 + func (s *SessionVars) GetNonPreparedPlanCacheStmt(sql string) interface{} + func (s *SessionVars) GetParseParams() []parser.ParseParam + func (s *SessionVars) GetPreparedStmtByID(stmtID uint32) (interface{}, error) + func (s *SessionVars) GetPreparedStmtByName(stmtName string) (interface{}, error) + func (s *SessionVars) GetPrevStmtDigest() string + func (s *SessionVars) GetReadableTxnMode() string + func (s *SessionVars) GetRelatedTableForMDL() *sync.Map + func (s *SessionVars) GetReplicaRead() kv.ReplicaReadType + func (s *SessionVars) GetScanFactor(tbl *model.TableInfo) float64 + func (s *SessionVars) GetSeekFactor(tbl *model.TableInfo) float64 + func (s *SessionVars) GetSessionOrGlobalSystemVar(ctx context.Context, name string) (string, error) + func (s *SessionVars) GetSessionStatesSystemVar(name string) (string, bool, error) + func (s *SessionVars) GetSplitRegionTimeout() time.Duration + func (s *SessionVars) GetStatusFlag(flag uint16) bool + func (s *SessionVars) GetStrMatchDefaultSelectivity() float64 + func (s *SessionVars) GetSystemVar(name string) (string, bool) + func (s *SessionVars) GetTemporaryTable(tblInfo *model.TableInfo) tableutil.TempTable + func (s *SessionVars) GetUseChunkAlloc() bool + func (s *SessionVars) GetUserVarType(name string) (*types.FieldType, bool) + func (s *SessionVars) GetUserVarVal(name string) (types.Datum, bool) + func (s *SessionVars) GetWriteStmtBufs() *WriteStmtBufs + func (s *SessionVars) InTxn() bool + func (s *SessionVars) InitStatementContext() *stmtctx.StatementContext + func (s *SessionVars) IsAutocommit() bool + func (s *SessionVars) IsDynamicPartitionPruneEnabled() bool + func (s *SessionVars) IsIsolation(isolation string) bool + func (s *SessionVars) IsMPPAllowed() bool + func (s *SessionVars) IsMPPEnforced() bool + func (s *SessionVars) IsPessimisticReadConsistency() bool + func (s *SessionVars) IsPlanReplayerCaptureEnabled() bool + func (s *SessionVars) IsReplicaReadClosestAdaptive() bool + func (s *SessionVars) IsolationLevelForNewTxn() (isolation string) + func (s *SessionVars) LazyCheckKeyNotExists() bool + func (s *SessionVars) Location() *time.Location + func (s *SessionVars) RaiseWarningWhenMPPEnforced(warning string) + func (s *SessionVars) RemovePreparedStmt(stmtID uint32) + func (s *SessionVars) SetAlloc(alloc chunk.Allocator) + func (s *SessionVars) SetAllowInSubqToJoinAndAgg(val bool) + func (s *SessionVars) SetAllowPreferRangeScan(val bool) + func (s *SessionVars) SetEnableCascadesPlanner(val bool) + func (s *SessionVars) SetEnableIndexMerge(val bool) + func (s *SessionVars) SetEnablePseudoForOutdatedStats(val bool) + func (s *SessionVars) SetInTxn(val bool) + func (s *SessionVars) SetLastInsertID(insertID uint64) + func (s *SessionVars) SetNextPreparedStmtID(preparedStmtID uint32) + func (s *SessionVars) SetPrevStmtDigest(prevStmtDigest string) + func (s *SessionVars) SetReplicaRead(val kv.ReplicaReadType) + func (s *SessionVars) SetStatusFlag(flag uint16, on bool) + func (s *SessionVars) SetStmtVar(name string, value string) error + func (s *SessionVars) SetStringUserVar(name string, strVal string, collation string) + func (s *SessionVars) SetSystemVar(name string, val string) error + func (s *SessionVars) SetSystemVarWithRelaxedValidation(name string, val string) error + func (s *SessionVars) SetSystemVarWithoutValidation(name string, val string) error + func (s *SessionVars) SetTxnIsolationLevelOneShotStateForNextTxn() + func (s *SessionVars) SetUserVarType(name string, ft *types.FieldType) + func (s *SessionVars) SetUserVarVal(name string, dt types.Datum) + func (s *SessionVars) SlowLogFormat(logItems *SlowQueryLogItems) string + func (s *SessionVars) UnsetUserVar(varName string) + func (s *SessionVars) WithdrawAllPreparedStmt() + type SlowQueryLogItems struct + BackoffTotal time.Duration + BinaryPlan string + CopTasks *stmtctx.CopTasksDetails + Digest string + DiskMax int64 + ExecDetail execdetails.ExecDetails + ExecRetryCount uint + ExecRetryTime time.Duration + HasMoreResults bool + IndexNames string + IsExplicitTxn bool + IsSyncStatsFailed bool + IsWriteCacheTable bool + KVTotal time.Duration + MemMax int64 + PDTotal time.Duration + Plan string + PlanDigest string + PlanFromBinding bool + PlanFromCache bool + Prepared bool + PrevStmt string + ResultRows int64 + RewriteInfo RewritePhaseInfo + SQL string + StatsInfos map[string]uint64 + StatsLoadStatus map[string]map[string]string + Succ bool + TimeCompile time.Duration + TimeOptimize time.Duration + TimeParse time.Duration + TimeTotal time.Duration + TimeWaitTS time.Duration + TxnTS uint64 + Warnings []JSONSQLWarnForSlowLog + WriteSQLRespTotal time.Duration + type Statistics interface + GetScope func(status string) ScopeFlag + Stats func(*SessionVars) (map[string]interface{}, error) + type StatusVal struct + Scope ScopeFlag + Value interface{} + type SysVar struct + Aliases []string + AllowAutoValue bool + AllowEmpty bool + AllowEmptyAll bool + AutoConvertNegativeBool bool + GetGlobal func(context.Context, *SessionVars) (string, error) + GetSession func(*SessionVars) (string, error) + GetStateValue func(*SessionVars) (string, bool, error) + GlobalConfigName string + Hidden bool + IsHintUpdatable bool + IsNoop bool + MaxValue uint64 + MinValue int64 + Name string + PossibleValues []string + ReadOnly bool + RequireDynamicPrivileges func(isGlobal bool, sem bool) []string + Scope ScopeFlag + SetGlobal func(context.Context, *SessionVars, string) error + SetSession func(*SessionVars, string) error + Type TypeFlag + Validation func(*SessionVars, string, string, ScopeFlag) (string, error) + Value string + func GetSysVar(name string) *SysVar + func (sv *SysVar) GetGlobalFromHook(ctx context.Context, s *SessionVars) (string, error) + func (sv *SysVar) GetNativeValType(val string) (types.Datum, byte, uint) + func (sv *SysVar) GetSessionFromHook(s *SessionVars) (string, error) + func (sv *SysVar) HasGlobalScope() bool + func (sv *SysVar) HasInstanceScope() bool + func (sv *SysVar) HasNoneScope() bool + func (sv *SysVar) HasSessionScope() bool + func (sv *SysVar) SetGlobalFromHook(ctx context.Context, s *SessionVars, val string, skipAliases bool) error + func (sv *SysVar) SetSessionFromHook(s *SessionVars, val string) error + func (sv *SysVar) SkipInit() bool + func (sv *SysVar) SkipSysvarCache() bool + func (sv *SysVar) Validate(vars *SessionVars, value string, scope ScopeFlag) (string, error) + func (sv *SysVar) ValidateFromType(vars *SessionVars, value string, scope ScopeFlag) (string, error) + func (sv *SysVar) ValidateWithRelaxedValidation(vars *SessionVars, value string, scope ScopeFlag) string + type TableDelta struct + ColSize map[int64]int64 + Count int64 + Delta int64 + InitTime time.Time + TableID int64 + func (td TableDelta) Clone() TableDelta + type TableSnapshot struct + Err error + Rows [][]types.Datum + type TemporaryTableData interface + Cleanup func(kv.StagingHandle) + DeleteTableKey func(tblID int64, k kv.Key) error + GetTableSize func(tblID int64) int64 + Release func(kv.StagingHandle) + SetTableKey func(tblID int64, k kv.Key, val []byte) error + Staging func() kv.StagingHandle + func NewTemporaryTableData(memBuffer kv.MemBuffer) TemporaryTableData + type TransactionContext struct + func (tc *TransactionContext) AddSavepoint(name string, memdbCheckpoint *tikv.MemDBCheckpoint) + func (tc *TransactionContext) AddUnchangedRowKey(key []byte) + func (tc *TransactionContext) Cleanup() + func (tc *TransactionContext) ClearDelta() + func (tc *TransactionContext) CollectUnchangedRowKeys(buf []kv.Key) []kv.Key + func (tc *TransactionContext) DeleteSavepoint(name string) bool + func (tc *TransactionContext) GetCurrentSavepoint() TxnCtxNeedToRestore + func (tc *TransactionContext) GetForUpdateTS() uint64 + func (tc *TransactionContext) GetKeyInPessimisticLockCache(key kv.Key) (val []byte, ok bool) + func (tc *TransactionContext) ReleaseSavepoint(name string) bool + func (tc *TransactionContext) RestoreBySavepoint(savepoint TxnCtxNeedToRestore) + func (tc *TransactionContext) RollbackToSavepoint(name string) *SavepointRecord + func (tc *TransactionContext) SetForUpdateTS(forUpdateTS uint64) + func (tc *TransactionContext) SetPessimisticLockCache(key kv.Key, val []byte) + func (tc *TransactionContext) UpdateDeltaForTable(physicalTableID int64, delta int64, count int64, colSize map[int64]int64) + type TxnCtxNeedToRestore struct + CachedTables map[int64]interface{} + TableDeltaMap map[int64]TableDelta + type TxnCtxNoNeedToRestore struct + Binlog interface{} + CouldRetry bool + CreateTime time.Time + EnableMDL bool + ForUpdate uint32 + History interface{} + InfoSchema interface{} + IsExplicit bool + IsPessimistic bool + IsStaleness bool + Isolation string + LockExpire uint32 + PessimisticCacheHit int + Savepoints []SavepointRecord + ShardStep int + StartTS uint64 + StatementCount int + TemporaryTables map[int64]tableutil.TempTable + TxnScope string + type TxnReadTS struct + func NewTxnReadTS(ts uint64) *TxnReadTS + func (t *TxnReadTS) PeakTxnReadTS() uint64 + func (t *TxnReadTS) SetTxnReadTS(ts uint64) + func (t *TxnReadTS) UseTxnReadTS() uint64 + type TypeFlag byte + type WriteStmtBufs struct + AddRowValues []types.Datum + IndexKeyBuf []byte + IndexValsBuf []types.Datum + RowValBuf []byte Other modules containing this package github.com/lemon-mint/tidb