package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Packages

# Functions

BindDomain binds domain to context.
CheckPlanReplayerTaskExists checks whether plan replayer capture task exists already.
DisableDumpHistoricalStats4Test disable historical dump worker for test.
DisablePlanReplayerBackgroundJob4Test disable plan replayer handle for test.
DumpPlanReplayerInfo will dump the information about sqls.
GenerateExtractFile generates extract stmt file.
GetDomain gets domain from context.
GetExtractTaskDirName get extract dir name.
GetLastExpectedTime return the last written ru time.
GetLastExpectedTimeTZ return the last written ru time under specifical timezone.
GetOptimizerTraceDirName returns optimizer trace directory path.
NewDomain creates a new domain.
NewDomainWithEtcdClient creates a new domain with etcd client.
NewExtractPlanTask returns extract plan task.
NewMockDomain is only used for test.
NewRUStatsWriter build a RUStatsWriter from Domain.
NewSchemaChecker creates a new schema checker.
NewSchemaValidator returns a SchemaValidator structure.

# Constants

ExtractMetaFile indicates meta file for extract.
ExtractPlanTaskSkipStats indicates skip stats for extract plan task.
ExtractPlanType indicates extract plan task.
ExtractTaskType indicates type of extract task.
PlanReplayerConfigFile indicates config file path for plan replayer.
PlanReplayerErrorMessageFile is the file name for error messages.
PlanReplayerGlobalBindingFile indicates global binding file path for plan replayer.
PlanReplayerHistoricalStatsTS indicates the expected TS of the historical stats if it's specified by the user.
PlanReplayerMetaFile meta file path for plan replayer.
PlanReplayerSchemaMetaFile indicates the schema meta.
PlanReplayerSessionBindingFile indicates session binding file path for plan replayer.
PlanReplayerSQLMetaFile indicates sql meta path for plan replayer.
PlanReplayerSQLMetaStartTS indicates the startTS in plan replayer sql meta.
PlanReplayerTaskEnableHistoricalStats indicates whether the task is using historical stats.
PlanReplayerTaskMetaIsCapture indicates whether this task is capture task.
PlanReplayerTaskMetaIsContinues indicates whether this task is continues task.
PlanReplayerTaskMetaPlanDigest indicates the plan digest of this task.
PlanReplayerTaskMetaSQLDigest indicates the sql digest of this task.
PlanReplayerTiFlashReplicasFile indicates for table tiflash replica file path for plan replayer.
PlanReplayerVariablesFile indicates for session variables file path for plan replayer.
ResultFail means schemaValidator's check is fail.
ResultSucc means schemaValidator's check is passing.
ResultUnknown means schemaValidator doesn't know the check would be success or fail.

# Variables

ErrInfoSchemaChanged returns the error that information schema is changed.
ErrInfoSchemaExpired returns the error that information schema is out of date.
LoadSchemaDiffVersionGapThreshold is the threshold for version gap to reload domain by loading schema diffs.
NewInstancePlanCache creates a new instance level plan cache, this function is designed to avoid cycle-import.
SchemaOutOfDateRetryInterval is the backoff time before retrying.
SchemaOutOfDateRetryTimes is the max retry count when the schema is out of date.

# Structs

Domain represents a storage space.
ExtractHandle handles the extractWorker to run extract the information task like Plan or any others.
ExtractTask indicates task.
HistoricalStatsWorker indicates for dump historical stats.
PlanReplayerDumpTask wrap the params for plan replayer dump.
PlanReplayerStatusRecord indicates record in mysql.plan_replayer_status.
PrivilegeEvent is the message definition for NotifyUpdatePrivilege(), encoded in json.
RUStatsWriter represents a write to write ru historical data into mysql.request_unit_by_group.
SchemaChecker is used for checking schema-validity.
SlowQueryInfo is a struct to record slow query info.
SysProcesses holds the sys processes infos.

# Interfaces

SchemaValidator is the interface for checking the validity of schema version.

# Type aliases

ExtractType indicates type.