- Docs Home
- About TiDB
- Quick Start
- Develop
- Overview
- Quick Start
- Build a TiDB Cluster in TiDB Cloud (Developer Tier)
- CRUD SQL in TiDB
- Build a Simple CRUD App with TiDB
- Example Applications
- Connect to TiDB
- Design Database Schema
- Write Data
- Read Data
- Transaction
- Optimize
- Troubleshoot
- Reference
- Cloud Native Development Environment
- Third-party Support
- Deploy
- Software and Hardware Requirements
- Environment Configuration Checklist
- Plan Cluster Topology
- Install and Start
- Verify Cluster Status
- Test Cluster Performance
- Migrate
- Overview
- Migration Tools
- Migration Scenarios
- Migrate from Aurora
- Migrate MySQL of Small Datasets
- Migrate MySQL of Large Datasets
- Migrate and Merge MySQL Shards of Small Datasets
- Migrate and Merge MySQL Shards of Large Datasets
- Migrate from CSV Files
- Migrate from SQL Files
- Migrate from One TiDB Cluster to Another TiDB Cluster
- Migrate from TiDB to MySQL-compatible Databases
- Advanced Migration
- Integrate
- Maintain
- Monitor and Alert
- Troubleshoot
- TiDB Troubleshooting Map
- Identify Slow Queries
- Analyze Slow Queries
- SQL Diagnostics
- Identify Expensive Queries Using Top SQL
- Identify Expensive Queries Using Logs
- Statement Summary Tables
- Troubleshoot Hotspot Issues
- Troubleshoot Increased Read and Write Latency
- Save and Restore the On-Site Information of a Cluster
- Troubleshoot Cluster Setup
- Troubleshoot High Disk I/O Usage
- Troubleshoot Lock Conflicts
- Troubleshoot TiFlash
- Troubleshoot Write Conflicts in Optimistic Transactions
- Troubleshoot Inconsistency Between Data and Indexes
- Performance Tuning
- Tuning Guide
- Configuration Tuning
- System Tuning
- Software Tuning
- SQL Tuning
- Overview
- Understanding the Query Execution Plan
- SQL Optimization Process
- Overview
- Logic Optimization
- Physical Optimization
- Prepare Execution Plan Cache
- Control Execution Plans
- Tutorials
- TiDB Tools
- Overview
- Use Cases
- Download
- TiUP
- Documentation Map
- Overview
- Terminology and Concepts
- Manage TiUP Components
- FAQ
- Troubleshooting Guide
- Command Reference
- Overview
- TiUP Commands
- TiUP Cluster Commands
- Overview
- tiup cluster audit
- tiup cluster check
- tiup cluster clean
- tiup cluster deploy
- tiup cluster destroy
- tiup cluster disable
- tiup cluster display
- tiup cluster edit-config
- tiup cluster enable
- tiup cluster help
- tiup cluster import
- tiup cluster list
- tiup cluster patch
- tiup cluster prune
- tiup cluster reload
- tiup cluster rename
- tiup cluster replay
- tiup cluster restart
- tiup cluster scale-in
- tiup cluster scale-out
- tiup cluster start
- tiup cluster stop
- tiup cluster template
- tiup cluster upgrade
- TiUP DM Commands
- Overview
- tiup dm audit
- tiup dm deploy
- tiup dm destroy
- tiup dm disable
- tiup dm display
- tiup dm edit-config
- tiup dm enable
- tiup dm help
- tiup dm import
- tiup dm list
- tiup dm patch
- tiup dm prune
- tiup dm reload
- tiup dm replay
- tiup dm restart
- tiup dm scale-in
- tiup dm scale-out
- tiup dm start
- tiup dm stop
- tiup dm template
- tiup dm upgrade
- TiDB Cluster Topology Reference
- DM Cluster Topology Reference
- Mirror Reference Guide
- TiUP Components
- PingCAP Clinic Diagnostic Service
- TiDB Operator
- Dumpling
- TiDB Lightning
- TiDB Data Migration
- About TiDB Data Migration
- Architecture
- Quick Start
- Deploy a DM cluster
- Tutorials
- Advanced Tutorials
- Maintain
- Cluster Upgrade
- Tools
- Performance Tuning
- Manage Data Sources
- Manage Tasks
- Export and Import Data Sources and Task Configurations of Clusters
- Handle Alerts
- Daily Check
- Reference
- Architecture
- Command Line
- Configuration Files
- OpenAPI
- Compatibility Catalog
- Secure
- Monitoring and Alerts
- Error Codes
- Glossary
- Example
- Troubleshoot
- Release Notes
- Backup & Restore (BR)
- TiDB Binlog
- TiCDC
- Dumpling
- sync-diff-inspector
- TiSpark
- Reference
- Cluster Architecture
- Key Monitoring Metrics
- Secure
- Privileges
- SQL
- SQL Language Structure and Syntax
- SQL Statements
ADD COLUMNADD INDEXADMINADMIN CANCEL DDLADMIN CHECKSUM TABLEADMIN CHECK [TABLE|INDEX]ADMIN SHOW DDL [JOBS|QUERIES]ADMIN SHOW TELEMETRYALTER DATABASEALTER INDEXALTER INSTANCEALTER PLACEMENT POLICYALTER TABLEALTER TABLE COMPACTALTER USERANALYZE TABLEBACKUPBATCHBEGINCHANGE COLUMNCOMMITCHANGE DRAINERCHANGE PUMPCREATE [GLOBAL|SESSION] BINDINGCREATE DATABASECREATE INDEXCREATE PLACEMENT POLICYCREATE ROLECREATE SEQUENCECREATE TABLE LIKECREATE TABLECREATE USERCREATE VIEWDEALLOCATEDELETEDESCDESCRIBEDODROP [GLOBAL|SESSION] BINDINGDROP COLUMNDROP DATABASEDROP INDEXDROP PLACEMENT POLICYDROP ROLEDROP SEQUENCEDROP STATSDROP TABLEDROP USERDROP VIEWEXECUTEEXPLAIN ANALYZEEXPLAINFLASHBACK TABLEFLUSH PRIVILEGESFLUSH STATUSFLUSH TABLESGRANT <privileges>GRANT <role>INSERTKILL [TIDB]LOAD DATALOAD STATSMODIFY COLUMNPREPARERECOVER TABLERENAME INDEXRENAME TABLEREPLACERESTOREREVOKE <privileges>REVOKE <role>ROLLBACKSELECTSET DEFAULT ROLESET [NAMES|CHARACTER SET]SET PASSWORDSET ROLESET TRANSACTIONSET [GLOBAL|SESSION] <variable>SHOW ANALYZE STATUSSHOW [BACKUPS|RESTORES]SHOW [GLOBAL|SESSION] BINDINGSSHOW BUILTINSSHOW CHARACTER SETSHOW COLLATIONSHOW [FULL] COLUMNS FROMSHOW CONFIGSHOW CREATE PLACEMENT POLICYSHOW CREATE SEQUENCESHOW CREATE TABLESHOW CREATE USERSHOW DATABASESSHOW DRAINER STATUSSHOW ENGINESSHOW ERRORSSHOW [FULL] FIELDS FROMSHOW GRANTSSHOW INDEX [FROM|IN]SHOW INDEXES [FROM|IN]SHOW KEYS [FROM|IN]SHOW MASTER STATUSSHOW PLACEMENTSHOW PLACEMENT FORSHOW PLACEMENT LABELSSHOW PLUGINSSHOW PRIVILEGESSHOW [FULL] PROCESSSLISTSHOW PROFILESSHOW PUMP STATUSSHOW SCHEMASSHOW STATS_HEALTHYSHOW STATS_HISTOGRAMSSHOW STATS_METASHOW STATUSSHOW TABLE NEXT_ROW_IDSHOW TABLE REGIONSSHOW TABLE STATUSSHOW [FULL] TABLESSHOW [GLOBAL|SESSION] VARIABLESSHOW WARNINGSSHUTDOWNSPLIT REGIONSTART TRANSACTIONTABLETRACETRUNCATEUPDATEUSEWITH
- Data Types
- Functions and Operators
- Overview
- Type Conversion in Expression Evaluation
- Operators
- Control Flow Functions
- String Functions
- Numeric Functions and Operators
- Date and Time Functions
- Bit Functions and Operators
- Cast Functions and Operators
- Encryption and Compression Functions
- Locking Functions
- Information Functions
- JSON Functions
- Aggregate (GROUP BY) Functions
- Window Functions
- Miscellaneous Functions
- Precision Math
- Set Operations
- List of Expressions for Pushdown
- TiDB Specific Functions
- Clustered Indexes
- Constraints
- Generated Columns
- SQL Mode
- Table Attributes
- Transactions
- Garbage Collection (GC)
- Views
- Partitioning
- Temporary Tables
- Cached Tables
- Character Set and Collation
- Placement Rules in SQL
- System Tables
mysql- INFORMATION_SCHEMA
- Overview
ANALYZE_STATUSCLIENT_ERRORS_SUMMARY_BY_HOSTCLIENT_ERRORS_SUMMARY_BY_USERCLIENT_ERRORS_SUMMARY_GLOBALCHARACTER_SETSCLUSTER_CONFIGCLUSTER_HARDWARECLUSTER_INFOCLUSTER_LOADCLUSTER_LOGCLUSTER_SYSTEMINFOCOLLATIONSCOLLATION_CHARACTER_SET_APPLICABILITYCOLUMNSDATA_LOCK_WAITSDDL_JOBSDEADLOCKSENGINESINSPECTION_RESULTINSPECTION_RULESINSPECTION_SUMMARYKEY_COLUMN_USAGEMETRICS_SUMMARYMETRICS_TABLESPARTITIONSPLACEMENT_POLICIESPROCESSLISTREFERENTIAL_CONSTRAINTSSCHEMATASEQUENCESSESSION_VARIABLESSLOW_QUERYSTATISTICSTABLESTABLE_CONSTRAINTSTABLE_STORAGE_STATSTIDB_HOT_REGIONSTIDB_HOT_REGIONS_HISTORYTIDB_INDEXESTIDB_SERVERS_INFOTIDB_TRXTIFLASH_REPLICATIKV_REGION_PEERSTIKV_REGION_STATUSTIKV_STORE_STATUSUSER_PRIVILEGESVIEWS
METRICS_SCHEMA
- UI
- TiDB Dashboard
- Overview
- Maintain
- Access
- Overview Page
- Cluster Info Page
- Top SQL Page
- Key Visualizer Page
- Metrics Relation Graph
- SQL Statements Analysis
- Slow Queries Page
- Cluster Diagnostics
- Search Logs Page
- Instance Profiling
- Session Management and Configuration
- FAQ
- CLI
- Command Line Flags
- Configuration File Parameters
- System Variables
- Storage Engines
- Telemetry
- Errors Codes
- Table Filter
- Schedule Replicas by Topology Labels
- FAQs
- Release Notes
- All Releases
- Release Timeline
- TiDB Versioning
- v6.1
- v6.0
- v5.4
- v5.3
- v5.2
- v5.1
- v5.0
- v4.0
- v3.1
- v3.0
- v2.1
- v2.0
- v1.0
- Glossary
TiDB 3.0.8 Release Notes
Release date: December 31, 2019
TiDB version: 3.0.8
TiDB Ansible version: 3.0.8
TiDB
- SQL Optimizer
- Fix the wrong SQL binding plan caused by untimely cache updates #13891
- Fix the issue that the SQL binding might be invalid when an SQL statement contains a symbol list #14004
- Fix the issue that an SQL binding cannot be created or deleted because an SQL statement ends with
;#14113 - Fix the issue that a wrong SQL query plan might be selected because the
PhysicalUnionScanoperator sets wrong statistics #14133 - Remove the
minAutoAnalyzeRatiorestriction to makeautoAnalyzemore timely #14015
- SQL Execution Engine
- Fix issues that the
INSERT/REPLACE/UPDATE ... SET ... = DEFAULTsyntax might report an error and combining the usage of theDEFAULTexpression with a virtual generated column might report an error #13682 - Fix the issue that the
INSERTstatement might report an error when converting a string to a float #14011 - Fix the issue that sometimes the aggregate operation is low effective because the concurrency value of the
HashAggexecutor is incorrectly initialized #13811 - Fix the issue that an error is reported in the execution of
group by itemwhen the clause is in the parentheses #13658 - Fix the issue that the execution of
OUTER JOINmight report an error because TiDB incorrectly calculatesgroup by item#14014 - Fix the issue that the error message is inaccurate when Range-exceeding data is written into Range partitioned tables #14107
- Revert PR #10124 and cancel the
PadCharToFullLengtheffect to avoid unexpected query results in special cases, considering that MySQL 8 will discardPadCharToFullLengthsoon #14157 - Fix the goroutine leak issue when executing the
EXPLAIN ANALYZEstatement caused by unguaranteedclose()calling inExplainExec#14226
- Fix issues that the
- DDL
- Optimize the error message output of
change column/modify columnto make it easier to understand #13796 - Add the
SPLIT PARTITION TABLEsyntax to support splitting Regions for partitioned tables #13929 - Fix the issue that the index length exceeds 3072 bytes and no error is reported because the index length is incorrectly checked when an index is created #13779
- Fix the issue that the
GC life time is shorter than transaction durationerror message might be reported because it takes too much time to add an index in partitioned tables #14132 - Fix the panic when
SELECT * FROM information_schema.KEY_COLUMN_USAGEis executed because the foreign key is not checked whenDROP COLUMN/MODIFY COLUMN/CHANGE COLUMNis executed #14105
- Optimize the error message output of
- Server
- Statement Summary improvements:
- Add a large number of SQL metric fields to facilitate analyzing SQL statements in more detail #14151, #14168
- Add the
stmt-summary.refresh-intervalparameter to control whether to move the stale data from theevents_statements_summary_by_digesttable to theevents_statements_summary_by_digest_historytable (the default interval: 30 minutes) #14161 - Add the
events_statements_summary_by_digest_historytable to save the stale data inevents_statements_summary_by_digest#14166
- Fix the issue that the binlog is incorrectly output when RBAC-related internal SQL statements are executed #13890
- Add the
server-versionconfiguration item to control the feature of modifying the TiDB server version #13906 - Add the feature of using the HTTP interface to recover writing the TiDB binlog #13892
- Update the privilege required by
GRANT roles TO userfromGrantPrivtoROLE_ADMINorSUPER, to keep consistency with the MySQL behavior #13932 - Modify the TiDB behavior from using the current database to reporting the
No database selectederror when theGRANTstatement does not specify a database name, to keep compatibility with the MySQL behavior #13784 - Modify the execution privilege for the
REVOKEstatement fromSuperPrivtoREVOKEbeing executable only if the user has the privilege for the corresponding schema, to keep consistency with the MySQL behavior #13306 - Fix the issue that
GrantPrivis mistakenly granted to the target user when theGRANT ALLsyntax does not containWITH GRANT OPTION#13943 - Fix the issue that the error message does not contain the cause for the
LOAD DATAstatement’s wrong behavior whenLoadDataInfofails to calladdRecord#13980 - Fix the issue that wrong slow query information is output because multiple SQL statements in a query share the same
StartTime#13898 - Fix the issue that the memory might leak when
batchClientprocesses a large transaction #14032 - Fix the issue that
system_time_zoneis always displayed asCSTand now TiDB’ssystem_time_zoneis obtained fromsystemTZin themysql.tidbtable #14086 - Fix the issue that the
GRANT ALLsyntax does not grant all privileges to the user #14092 - Fix the issue that the
Priv_create_userprivilege is invalid forCREATE ROLEandDROP ROLE#14088 - Modify the error code of
ErrInvalidFieldSizefrom1105(Unknow Error)to3013#13737 - Add the
SHUTDOWNcommand to stop a TiDB server and add theShutdownPrivprivilege #14104 - Fix the atomicity issue for the
DROP ROLEstatement to avoid some roles being deleted unexpectedly when TiDB fails to execute a statement #14130 - Fix the issue that the
tidb_enable_window_functionin theSHOW VARIABLEresult incorrectly outputs1when a TiDB version is upgraded to 3.0, and replace the wrong result with0#14131 - Fix the issue that the goroutine might leak because
gcworkercontinuously retries when the TiKV node is offline #14106 - Record the binlog
Prewritetime in the slow query log to improve the usability for issue tracking #14138 - Make the
tidb_enable_table_partitionvariable supportGLOBAL SCOPE#14091 - Fix the issue that the user privilege might be missing or mistakenly added because the newly added privilege is not correctly granted to the corresponding user when a new privilege is added #14178
- Fix the issue that the
CheckStreamTimeoutLoopgoroutine might leak becauserpcClientdoes not close when the TiKV server is disconnected #14227 - Support certificate-based authentication (User document) #13955
- Statement Summary improvements:
- Transaction
- Update the default value of the
tidb_txn_modevariable from""to"pessimistic"when a new cluster is created #14171 - Fix the issue that the lock waiting time is too long for a pessimistic transaction because the lock waiting time for a single statement is not reset when a transaction is retried #13990
- Fix the issue that wrong data might be read because unmodified data is unlocked for the pessimistic transaction mode #14050
- Fix repeated insert value restriction checks because transaction types are not distinguished when prewrite is performed in mocktikv #14175
- Fix the panic because transactions are not correctly handled when
session.TxnStateisInvalid#13988 - Fix the issue that the
ErrConfclitstructure in mocktikv does not containConflictCommitTS#14080 - Fix the issue that the transaction is blocked because TiDB does not correctly check lock timeout after resolving the lock #14083
- Update the default value of the
- Monitor
- Add the
pessimistic_lock_keys_durationmonitoring item inLockKeys#14194
- Add the
TiKV
- Coprocessor
- Raftstore
- Engine
- Fix the issue that empty data might be returned because RocksDB iterator errors are not correctly processed in extreme conditions #6326
- Transaction
- Update the default value of
tikv_allocfromtikv_alloc/defaulttojemalloc#6206
PD
- Client
- Optimize the performance for the
/api/v1/regionsAPI #1986 - Fix the issue that deleting stores in a
tombstonestate might cause a panic #2038 - Fix the issue that overlapped Regions are mistakenly deleted when loading the Region information from disks #2011, #2040
- Upgrade etcd from v3.4.0 to v3.4.3 (note that after upgrading you can only degrade etcd using pd-recover) #2058
Tools
- TiDB Binlog
- Fix the issue that the binlog is ignored because Pump does not receive the DDL committed binlog #853
TiDB Ansible
- Revert the simplified configuration item #1053
- Optimize the logic for checking the TiDB version when performing a rolling update #1056
- Upgrade TiSpark to v2.1.8 #1061
- Fix the issue that the PD role monitoring item is wrongly displayed on Grafana #1065
- Optimize
Thread Voluntary Context SwitchesandThread Nonvoluntary Context Switchesmonitoring items on the TiKV Detail page on Grafana #1071
What’s on this page
Was this page helpful?