From 2d6b5234e68a4a7a1cc6f535976e7afa6712cf48 Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Fri, 10 Sep 2021 09:24:07 -0600 Subject: [PATCH 1/2] system-variables: update from generated source --- system-variables.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/system-variables.md b/system-variables.md index c442f18ce77e4..74c5e170b0a4d 100644 --- a/system-variables.md +++ b/system-variables.md @@ -254,11 +254,6 @@ mysql> SELECT * FROM t1; - Default value: "" - This variable is used to specify a list of storage engines that might fall back to TiKV. If the execution of a SQL statement fails due to a failure of the specified storage engine in the list, TiDB retries executing this SQL statement with TiKV. This variable can be set to "" or "tiflash". When this variable is set to "tiflash", if the execution of a SQL statement fails due to a failure of TiFlash, TiDB retries executing this SQL statement with TiKV. -### tidb_allow_function_for_expression_index New in v5.2.0 - -- Scope: NONE -- This variable is used to show the functions that are allowed to be used for creating expression indexes. - ### tidb_allow_mpp New in v5.0 - Scope: SESSION | GLOBAL @@ -1201,7 +1196,7 @@ SET tidb_query_log_max_len = 20 ### tidb_replica_read New in v4.0 -- Scope: SESSION +- Scope: SESSION | GLOBAL - Default value: `leader` - Possible values: `leader`, `follower`, `leader-and-follower` - This variable is used to control where TiDB reads data. Here are three options: @@ -1320,7 +1315,8 @@ SET tidb_slow_log_threshold = 200; - Scope: SESSION | GLOBAL - Default value: `1800` - Range: `[1, 2147483647]` -- This variable is used to set the refresh time of [statement summary tables](/statement-summary-tables.md). The unit is second. +- Unit: Seconds +- This variable is used to set the refresh time of [statement summary tables](/statement-summary-tables.md). ### tidb_store_limit New in v3.0.4 and v4.0 @@ -1358,7 +1354,8 @@ SET tidb_slow_log_threshold = 200; - Scope: SESSION - Default value: `300` - Range: `[1, 2147483647]` -- This variable is used to set the timeout for executing the `SPLIT REGION` statement. The unit is second. If a statement is not executed completely within the specified time value, a timeout error is returned. +- Unit: Seconds +- This variable is used to set the timeout for executing the `SPLIT REGION` statement. If a statement is not executed completely within the specified time value, a timeout error is returned. ### tidb_window_concurrency New in v4.0 From f562b45485ec9ad89723b80b01da6ae2410a1f33 Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Mon, 13 Sep 2021 21:32:38 -0600 Subject: [PATCH 2/2] Update system-variables.md --- system-variables.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system-variables.md b/system-variables.md index 74c5e170b0a4d..5ff123d7570c1 100644 --- a/system-variables.md +++ b/system-variables.md @@ -254,6 +254,11 @@ mysql> SELECT * FROM t1; - Default value: "" - This variable is used to specify a list of storage engines that might fall back to TiKV. If the execution of a SQL statement fails due to a failure of the specified storage engine in the list, TiDB retries executing this SQL statement with TiKV. This variable can be set to "" or "tiflash". When this variable is set to "tiflash", if the execution of a SQL statement fails due to a failure of TiFlash, TiDB retries executing this SQL statement with TiKV. +### tidb_allow_function_for_expression_index New in v5.2.0 + +- Scope: NONE +- This variable is used to show the functions that are allowed to be used for creating expression indexes. + ### tidb_allow_mpp New in v5.0 - Scope: SESSION | GLOBAL