From 92fbdaa68cb1c9f00e8778f4a4bdbf9fd563c3ac Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Tue, 22 Jun 2021 08:18:38 -0600 Subject: [PATCH 1/3] system-variables: update for small errors --- system-variables.md | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/system-variables.md b/system-variables.md index eabede51b3cbf..ea193d3741797 100644 --- a/system-variables.md +++ b/system-variables.md @@ -84,10 +84,11 @@ mysql> SELECT * FROM t1; - Default value: `ON` - Controls whether statements should automatically commit when not in an explicit transaction. See [Transaction Overview](/transaction-overview.md#autocommit) for more information. -### `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. ### ddl_slow_threshold @@ -504,16 +505,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` New in v5.1 - -> **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 New in v4.0 - Scope: SESSION | GLOBAL @@ -609,7 +600,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` New in v5.1 +### tidb_enforce_mpp New in v5.1 - Scope: SESSION - Default value: `OFF` @@ -709,6 +700,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:** @@ -722,6 +714,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 New in v5.0 @@ -1057,6 +1050,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 New in v5.1 + +> **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_pprof_sql_cpu New in v4.0 - Scope: INSTANCE @@ -1317,7 +1320,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 From dbd61b3c359c8d1b5e0edc62d5bf599600500e95 Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Thu, 15 Jul 2021 08:06:52 -0600 Subject: [PATCH 2/3] Update system-variables.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index d37e8f9203ed1..94cf4752e5221 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1109,7 +1109,7 @@ explain select * from t where age=5; - 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). +- 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 New in v4.0 From 9d73d9a9c6270a6e0305fbd59476b2d2e8b9f6c3 Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Thu, 15 Jul 2021 08:07:26 -0600 Subject: [PATCH 3/3] Update system-variables.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index 94cf4752e5221..cf4dbc4929b1f 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1105,7 +1105,7 @@ explain select * from t where age=5; > **Warning:** -> Currently, the dynamic mode for partitioned tables is an experimental feature. It is not recommended that you use it in the production environment. +> 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`