Skip to content

Commit

Permalink
*: add descriptions for some system tables (#15844)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxsd authored Dec 21, 2023
1 parent 44c7651 commit c2b94db
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions mysql-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,22 @@ Currently, the `help_topic` is NULL.

## System tables related to metadata locks

* `tidb_mdl_view`:a view of metadata locks. You can use it to view information about the currently blocked DDL statements
* `tidb_mdl_info`:used internally by TiDB to synchronize metadata locks across nodes
* `tidb_mdl_view`: a view of metadata locks. You can use it to view information about the currently blocked DDL statements
* `tidb_mdl_info`: used internally by TiDB to synchronize metadata locks across nodes

## System tables related to DDL statements

* `tidb_ddl_history`: the history records of DDL statements
* `tidb_ddl_jobs`: the metadata of DDL statements that are currently being executed by TiDB
* `tidb_ddl_reorg`: the metadata of physical DDL statements (such as adding indexes) that are currently being executed by TiDB

## System tables related to TiDB Distributed eXecution Framework (DXF)

* `dist_framework_meta`: the metadata of the Distributed eXecution Framework (DXF) task scheduler
* `tidb_global_task`: the metadata of the current DXF task
* `tidb_global_task_history`: the metadata of the historical DXF tasks, including both succeeded and failed tasks
* `tidb_background_subtask`: the metadata of the current DXF subtask
* `tidb_background_subtask_history`: the metadata of the historical DXF subtasks

## Miscellaneous system tables

Expand Down

0 comments on commit c2b94db

Please sign in to comment.