Skip to content

Commit

Permalink
system-variables: update for consistency (pingcap#5826)
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo authored and ti-chi-bot committed Jul 16, 2021
1 parent 4472c8f commit f31d00a
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,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 @@ -554,16 +555,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 @@ -659,7 +650,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 @@ -759,6 +750,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 @@ -772,6 +764,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 @@ -1107,6 +1100,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 @@ -1367,7 +1370,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

0 comments on commit f31d00a

Please sign in to comment.