-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor/improve clarity: change system-table to information-schema #4109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
8e1d491
update information-schema.md
54d1c05
add 6 files
95eb068
add 5 files
a9112d9
add 5 files
0d39934
Merge remote-tracking branch 'upstream/master' into information-schem…
80bfa73
add commits from https://github.com/pingcap/docs-cn/pull/3470/
2da351c
Update information-schema/information-schema-analyze-status.md
yikeke e8faeda
add 3 files and rename another file
cec97fa
rename/update a file
95ea5c5
rename cluster-hardware
700617f
rename/update a file
5decf34
rename/update cluster-systeminfo
7b4430d
rename/update cluster-log
1a50a59
rename/update metrics-summary and metrics-tables
c7e5a4a
rename/update inspection-result
1d86175
rename/update inspection-summary
9a37f52
rename/update metrics-schema.md
abe1aa4
rename/update mysql Schema
246c8ba
rename/update sql-diagnostics
c8fc79f
Update TOC.md
80b2f6b
fix links
6e3d865
Update information-schema.md
f71a2e3
add 6 files
16b23b3
add a file
5178485
fix 2 links
a3cbdc2
Update faq/deploy-and-maintain-faq.md
yikeke 78accca
Merge branch 'master' into information-schema-updates
yikeke 687aa88
Update faq/deploy-and-maintain-faq.md
yikeke c699293
Update information-schema/information-schema-cluster-config.md
yikeke 205c388
Merge branch 'master' into pr/4109
965faed
Merge branch 'master' into pr/4109
69f8651
Apply suggestions from code review
lilin90 41dc612
Merge branch 'master' into information-schema-updates
ti-srebot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| --- | ||
| title: ANALYZE_STATUS | ||
| summary: 了解 information_schema 表 `ANALYZE_STATUS`。 | ||
| --- | ||
|
|
||
| # ANALYZE_STATUS | ||
|
|
||
| `ANALYZE_STATUS` 表提供正在执行的收集统计信息的任务以及有限条历史任务记录。 | ||
|
|
||
| {{< copyable "sql" >}} | ||
|
|
||
| ```sql | ||
| USE information_schema; | ||
| DESC analyze_status; | ||
| ``` | ||
|
|
||
| ```sql | ||
| +----------------+---------------------+------+------+---------+-------+ | ||
| | Field | Type | Null | Key | Default | Extra | | ||
| +----------------+---------------------+------+------+---------+-------+ | ||
| | TABLE_SCHEMA | varchar(64) | YES | | NULL | | | ||
| | TABLE_NAME | varchar(64) | YES | | NULL | | | ||
| | PARTITION_NAME | varchar(64) | YES | | NULL | | | ||
| | JOB_INFO | varchar(64) | YES | | NULL | | | ||
| | PROCESSED_ROWS | bigint(20) unsigned | YES | | NULL | | | ||
| | START_TIME | datetime | YES | | NULL | | | ||
| | STATE | varchar(64) | YES | | NULL | | | ||
| +----------------+---------------------+------+------+---------+-------+ | ||
| 7 rows in set (0.00 sec) | ||
| ``` | ||
|
|
||
| {{< copyable "sql" >}} | ||
|
|
||
| ```sql | ||
| SELECT * FROM `ANALYZE_STATUS`; | ||
| ``` | ||
|
|
||
| ```sql | ||
| +--------------+------------+----------------+-------------------+----------------+---------------------+----------+ | ||
| | TABLE_SCHEMA | TABLE_NAME | PARTITION_NAME | JOB_INFO | PROCESSED_ROWS | START_TIME | STATE | | ||
| +--------------+------------+----------------+-------------------+----------------+---------------------+----------+ | ||
| | test | t | | analyze index idx | 2 | 2019-06-21 19:51:14 | finished | | ||
| | test | t | | analyze columns | 2 | 2019-06-21 19:51:14 | finished | | ||
| | test | t1 | p0 | analyze columns | 0 | 2019-06-21 19:51:15 | finished | | ||
| | test | t1 | p3 | analyze columns | 0 | 2019-06-21 19:51:15 | finished | | ||
| | test | t1 | p1 | analyze columns | 0 | 2019-06-21 19:51:15 | finished | | ||
| | test | t1 | p2 | analyze columns | 1 | 2019-06-21 19:51:15 | finished | | ||
| +--------------+------------+----------------+-------------------+----------------+---------------------+----------+ | ||
| 6 rows in set | ||
| ``` | ||
|
|
||
| `ANALYZE_STATUS` 表中列的含义如下: | ||
|
|
||
| * `TABLE_SCHEMA`:表所属的数据库的名称。 | ||
| * `TABLE_NAME`:表的名称。 | ||
| * `PARTITION_NAME`:分区表的名称。 | ||
| * `JOB_INFO`:`ANALYZE` 任务的信息。 | ||
| * `PROCESSED_ROWS`:已经处理的行数。 | ||
| * `START_TIME`:`ANALYZE` 任务的开始时间。 | ||
| * `STATE`:`ANALYZE` 任务的执行状态。其值可以是 `pending`、`running`、`finished` 或者 `failed`。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| --- | ||
| title: CHARACTER_SETS | ||
| summary: 了解 information_schema 表 `CHARACTER_SETS`。 | ||
| --- | ||
|
|
||
| # CHARACTER_SETS | ||
|
|
||
| `CHARACTER_SETS` 表提供[字符集](/character-set-and-collation.md)相关的信息。TiDB 目前仅支持部分字符集。 | ||
|
|
||
| {{< copyable "sql" >}} | ||
|
|
||
| ```sql | ||
| USE information_schema; | ||
| DESC character_sets; | ||
| ``` | ||
|
|
||
| ```sql | ||
| +----------------------+-------------+------+------+---------+-------+ | ||
| | Field | Type | Null | Key | Default | Extra | | ||
| +----------------------+-------------+------+------+---------+-------+ | ||
| | CHARACTER_SET_NAME | varchar(32) | YES | | NULL | | | ||
| | DEFAULT_COLLATE_NAME | varchar(32) | YES | | NULL | | | ||
| | DESCRIPTION | varchar(60) | YES | | NULL | | | ||
| | MAXLEN | bigint(3) | YES | | NULL | | | ||
| +----------------------+-------------+------+------+---------+-------+ | ||
| 4 rows in set (0.00 sec) | ||
| ``` | ||
|
|
||
| {{< copyable "sql" >}} | ||
|
|
||
| ```sql | ||
| SELECT * FROM `character_sets`; | ||
| ``` | ||
|
|
||
| ```sql | ||
| +--------------------+----------------------+---------------+--------+ | ||
| | CHARACTER_SET_NAME | DEFAULT_COLLATE_NAME | DESCRIPTION | MAXLEN | | ||
| +--------------------+----------------------+---------------+--------+ | ||
| | utf8 | utf8_bin | UTF-8 Unicode | 3 | | ||
| | utf8mb4 | utf8mb4_bin | UTF-8 Unicode | 4 | | ||
| | ascii | ascii_bin | US ASCII | 1 | | ||
| | latin1 | latin1_bin | Latin1 | 1 | | ||
| | binary | binary | binary | 1 | | ||
| +--------------------+----------------------+---------------+--------+ | ||
| 5 rows in set (0.00 sec) | ||
| ``` | ||
|
|
||
| `CHARACTER_SETS` 表中列的含义如下: | ||
|
|
||
| * `CHARACTER_SET_NAME`:字符集名称 | ||
| * `DEFAULT_COLLATE_NAME`:字符集的默认排序规则名称 | ||
| * `DESCRIPTION`:字符集的描述信息 | ||
| * `MAXLEN`:该字符集存储一个字符所需要的最大字节数 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.