Skip to content

Commit

Permalink
cherry pick #4638 to release-5.0 (#4640)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
ti-srebot and TomShawn authored Jan 18, 2021
1 parent 673f0d7 commit 0b69b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion releases/release-5.0.0-rc.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Clustered index defines the physical storage order of data in a table. The data

Users can enable the clustered index feature by modifying the `tidb_enable_clustered_index` variable. When enabled, the feature takes effect only on newly created tables and applies to the primary key that has multiple columns or is non-integer types in a single column. If the primary key is an integer type in a single column, or if the table has no primary key, the data is sorted in the same way as before, without being affected by the clustered index.

For example, to check whether a table (`tbl_name`) has a clustered index, execute `select tidb_pk_type from information_schema.tables where tbl_name = '{tbl_name}'`.
For example, to check whether a table (`tbl_name`) has a clustered index, execute `select tidb_pk_type from information_schema.tables where table_name = '{tbl_name}'`.

+ [User document](/system-variables.md#tidb_enable_clustered_index-new-in-v500-rc)
+ Related issue: [#4841](https://github.com/pingcap/tidb/issues/4841)
Expand Down

0 comments on commit 0b69b97

Please sign in to comment.