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

add description for @@tidb_enable_change_multi_schema (#9952) #9953

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,21 @@ MPP 是 TiFlash 引擎提供的分布式计算框架,允许节点之间的数
- 默认值:`OFF`
- 这个变量用于控制是否允许在创建生成列或者表达式索引时引用自增列。

### `tidb_enable_change_multi_schema`

> **警告:**
>
> TiDB 未来会支持更多种类的多模式对象变更,该系统变量将在后续版本中移除。

- 作用域:GLOBAL
- 是否持久化到集群:是
- 默认值:`OFF`
- 这个变量用于控制是否允许在一个 `ALTER TABLE` 语句中变更多个列或者索引。该变量值为 `ON` 时,仅支持以下多模式对象变更:
- 添加多列,例如 `ATLER TABLE t ADD COLUMN c1 INT, ADD COLUMN c2 INT;`。
- 删除多列,例如 `ATLER TABLE t DROP COLUMN c1, DROP COLUMN c2;`。
- 删除多个索引,例如 `ATLER TABLE t DROP INDEX i1, DROP INDEX i2;`。
- 删除被单列索引所覆盖的列,例如 `ALTER TABLE t DROP COLUMN c1`, 表结构中包含 `INDEX idx(c1)`。

### `tidb_enable_cascades_planner`

> **警告:**
Expand Down