Skip to content
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

reference: add tidb session variable description about tidb_allow_remove_auto_inc #1858

Merged
merged 14 commits into from
Sep 17, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -636,3 +636,11 @@ select * from t, t1 where t.a=t1.a
默认值:0

TiDB 默认会在建表时为新表分裂 Region。开启该变量后,会在建表语句执行时,同步打散刚分裂出的 Region。适用于批量建表后紧接着批量写入数据,能让刚分裂出的 Region 先在 TiKV 分散而不用等待 PD 进行调度。为了保证后续批量写入数据的稳定性,建表语句会等待打散 Region 完成后再返回建表成功,建表语句执行时间会是关闭该变量的数倍。

### tidb_allow_remove_auto_inc
tangenta marked this conversation as resolved.
Show resolved Hide resolved
tangenta marked this conversation as resolved.
Show resolved Hide resolved

作用域:SESSION

默认值:0

这个变量用来控制是否允许通过 `ALTER TABLE MODIFY` 或 `ALTER TABLE CHANGE` 来移除某个列的 `auto_increment` 属性。默认为不允许。
Original file line number Diff line number Diff line change
Expand Up @@ -443,3 +443,11 @@ set tidb_query_log_max_len = 20
默认值:0

TiDB 默认会在建表时为新表分裂 Region。开启该变量后,会在建表语句执行时,同步打散刚分裂出的 Region。适用于批量建表后紧接着批量写入数据,能让刚分裂出的 Region 先在 TiKV 分散而不用等待 PD 进行调度。为了保证后续批量写入数据的稳定性,建表语句会等待打散 Region 完成后再返回建表成功,建表语句执行时间会是关闭该变量的数倍。

### tidb_allow_remove_auto_inc
tangenta marked this conversation as resolved.
Show resolved Hide resolved
tangenta marked this conversation as resolved.
Show resolved Hide resolved

作用域:SESSION

默认值:0

这个变量用来控制是否允许通过 `ALTER TABLE MODIFY` 或 `ALTER TABLE CHANGE` 来移除某个列的 `auto_increment` 属性。默认为不允许。
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,11 @@ select * from t, t1 where t.a=t1.a
默认值:0

TiDB 默认会在建表时为新表分裂 Region。开启该变量后,会在建表语句执行时,同步打散刚分裂出的 Region。适用于批量建表后紧接着批量写入数据,能让刚分裂出的 Region 先在 TiKV 分散而不用等待 PD 进行调度。为了保证后续批量写入数据的稳定性,建表语句会等待打散 Region 完成后再返回建表成功,建表语句执行时间会是关闭该变量的数倍。

### tidb_allow_remove_auto_inc
tangenta marked this conversation as resolved.
Show resolved Hide resolved

作用域:SESSION

默认值:0

这个变量用来控制是否允许通过 `ALTER TABLE MODIFY` 或 `ALTER TABLE CHANGE` 来移除某个列的 `auto_increment` 属性。默认为不允许。