Skip to content

Commit

Permalink
mysql-schema.md: update system tables (pingcap#11913)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn authored Jan 20, 2023
1 parent a37b978 commit 8486c12
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions mysql-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ These system tables contain grant information about user accounts and their priv
- `tables_priv`: table-level privileges
- `columns_priv`: column-level privileges
- `password_history`: password change history
- `default_roles`: the default roles for a user
- `global_grants`: dynamic privileges
- `global_priv`: the authentication information based on certificates
- `role_edges`: the relationship between roles

## Server-side help system tables

Expand All @@ -26,16 +30,29 @@ Currently, the `help_topic` is NULL.

- `stats_buckets`: the buckets of statistics
- `stats_histograms`: the histograms of statistics
- `stats_top_n`: the TopN of statistics
- `stats_meta`: the meta information of tables, such as the total number of rows and updated rows
- `stats_extended`: extended statistics, such as the order correlation between columns
- `stats_feedback`: the query feedback of statistics
- `stats_fm_sketch`: the FMSketch distribution of the histogram of the statistics column
- `analyze_options`: the default `analyze` options for each table
- `column_stats_usage`: the usage of column statistics
- `schema_index_usage`: the usage of indexes
- `analyze_jobs`: the ongoing statistics collection tasks and the history task records within the last 7 days

## Execution plan-related system tables

- `bind_info`: the binding information of execution plans
- `capture_plan_baselines_blacklist`: the blocklist for the automatic binding of the execution plan

## GC worker system tables

- `gc_delete_range`: to record the data to be deleted
- `gc_delete_range`: the KV range to be deleted
- `gc_delete_range_done`: the deleted KV range

## System tables related to cached tables

* `table_cache_meta` stores the metadata of cached tables.
- `table_cache_meta` stores the metadata of cached tables.

## Miscellaneous system tables

Expand All @@ -44,5 +61,8 @@ Currently, the `help_topic` is NULL.
<CustomContent platform="tidb">

- `tidb`: to record the version information when TiDB executes `bootstrap`
- `expr_pushdown_blacklist`: the blocklist for expression pushdown
- `opt_rule_blacklist`: the blocklist for logical optimization rules
- `table_cache_meta`: the metadata of cached tables

</CustomContent>

0 comments on commit 8486c12

Please sign in to comment.