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

system-variables: update for consistency #5826

Merged
merged 4 commits into from
Jul 16, 2021
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
33 changes: 18 additions & 15 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ mysql> SELECT * FROM t1;
- Default value: `utf8mb4`
- The character set used for new schemas when no character set is specified in the `CREATE SCHEMA` statement.

### `cte_max_recursion_depth`
### cte_max_recursion_depth

- Scope:SESSION | GLOBAL
- Default value:1000
- Scope: SESSION | GLOBAL
- Default value: `1000`
- Range: `[0, 4294967295]`
- Controls the maximum recursion depth in Common Table Expressions.

### datadir
Expand Down Expand Up @@ -555,16 +556,6 @@ Constraint checking is always performed in place for pessimistic transactions (d
- Default value: `OFF`
- This variable is used to set whether to enable the `LIST (COLUMNS) TABLE PARTITION` feature.

### `tidb_partition_prune_mode` <span class="version-mark">New in v5.1</span>

> **Warning:**
>
> Currently, the dynamic mode for partitioned tables is an experimental feature. It is not recommended that you use it in the production environment.

- Scope: SESSION | GLOBAL
- Default value: `static`
- Specifies whether to enable `dynamic` mode for partitioned tables. For details about the dynamic mode, see [Dynamic Mode for Partitioned Tables](/partitioned-table.md#dynamic-mode).

### tidb_enable_noop_functions <span class="version-mark">New in v4.0</span>

- Scope: SESSION | GLOBAL
Expand Down Expand Up @@ -660,7 +651,7 @@ Query OK, 0 rows affected (0.09 sec)
- Default value: `ON`
- This variable is used to control whether to enable the support for window functions. Note that window functions may use reserved keywords. This might cause SQL statements that could be executed normally cannot be parsed after upgrading TiDB. In this case, you can set `tidb_enable_window_function` to `OFF`.

### `tidb_enforce_mpp` <span class="version-mark">New in v5.1</span>
### tidb_enforce_mpp <span class="version-mark">New in v5.1</span>

- Scope: SESSION
- Default value: `OFF`. To change this default value, modify the [`performance.enforce-mpp`](/tidb-configuration-file.md#enforce-mpp) configuration value.
Expand Down Expand Up @@ -760,6 +751,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified

- Scope: GLOBAL
- Default value: `10m0s`
- Range: `[10m0s, 8760h0m0s]`
- The time limit during which data is retained for each GC, in the format of Go Duration. When a GC happens, the current time minus this value is the safe point.

> **Note:**
Expand All @@ -773,6 +765,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified

- Scope: GLOBAL
- Default value: `10m0s`
- Range: `[10m0s, 8760h0m0s]`
- Specifies the GC interval, in the format of Go Duration, for example, `"1h30m"`, and `"15m"`

### tidb_gc_scan_lock_mode <span class="version-mark">New in v5.0</span>
Expand Down Expand Up @@ -1108,6 +1101,16 @@ explain select * from t where age=5;
- Default value: `OFF`
- This variable is used to control whether to allow `INSERT`, `REPLACE`, and `UPDATE` statements to operate on the `_tidb_rowid` column. This variable can be used only when you import data using TiDB tools.

### tidb_partition_prune_mode <span class="version-mark">New in v5.1</span>

> **Warning:**

> Currently, the dynamic pruning mode for partitioned tables is an experimental feature. It is not recommended that you use it in the production environment.

- Scope: SESSION | GLOBAL
- Default value: `static`
- Specifies whether to enable `dynamic` mode for partitioned tables. For details about the dynamic pruning mode, see [Dynamic Pruning Mode for Partitioned Tables](/partitioned-table.md#dynamic-mode).

### tidb_pprof_sql_cpu <span class="version-mark">New in v4.0</span>

- Scope: INSTANCE
Expand Down Expand Up @@ -1368,7 +1371,7 @@ This variable is an alias for _transaction_isolation_.
### warning_count

- Scope: SESSION
- Default value: 0
- Default value: `0`
- This read-only variable indicates the number of warnings that occurred in the statement that was previously executed.

### windowing_use_high_precision
Expand Down