From 003dd23a4e65aa927c3337cc5d46e2a145247df7 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 23 Sep 2024 15:47:27 +0800 Subject: [PATCH 1/4] Add temp.md --- temp.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 temp.md diff --git a/temp.md b/temp.md new file mode 100644 index 0000000000000..af27ff4986a7b --- /dev/null +++ b/temp.md @@ -0,0 +1 @@ +This is a test file. \ No newline at end of file From e87ec98e8364e184c70209cefb99ac7fe46c1f9e Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 23 Sep 2024 15:47:32 +0800 Subject: [PATCH 2/4] Delete temp.md --- temp.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 temp.md diff --git a/temp.md b/temp.md deleted file mode 100644 index af27ff4986a7b..0000000000000 --- a/temp.md +++ /dev/null @@ -1 +0,0 @@ -This is a test file. \ No newline at end of file From 19ecdabb12e50200c2475d19ec339990f6b5cd99 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 23 Sep 2024 15:51:59 +0800 Subject: [PATCH 3/4] Update system-variables.md --- system-variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system-variables.md b/system-variables.md index af68c83d581bc..4e2252391441e 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1386,7 +1386,7 @@ mysql> SELECT job_info FROM mysql.analyze_jobs ORDER BY end_time DESC LIMIT 1; > This variable is read-only for [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless). - Scope: SESSION -- Persists to cluster: No +- Persists to cluster: No, only applicable to the current TiDB instance that you are connecting to. - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No - Type: Integer - Default value: `0` @@ -5148,7 +5148,7 @@ SHOW WARNINGS; > This TiDB variable is not applicable to TiDB Cloud. - Scope: GLOBAL -- Persists to cluster: No +- Persists to cluster: No, only applicable to the current TiDB instance that you are connecting to. - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No - Type: String - Default value: "" @@ -5158,7 +5158,7 @@ SHOW WARNINGS; ### tidb_session_alias New in v7.4.0 - Scope: SESSION -- Persists to cluster: No +- Persists to cluster: No, only applicable to the current TiDB instance that you are connecting to. - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): Yes - Default value: "" - You can use this variable to customize the value of the `session_alias` column in the logs related to the current session, which helps identify the session in troubleshooting. This setting affects the logs of multiple nodes involved in the statement execution (including TiKV). The maximum length of this variable is limited to 64 characters, and any characters exceeding the length will be truncated automatically. Spaces at the end of the value will also be removed automatically. From d5e23afa30aba8357b80d28ecb71684e4534fb49 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 23 Sep 2024 15:54:07 +0800 Subject: [PATCH 4/4] Apply suggestions from code review --- system-variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system-variables.md b/system-variables.md index 4e2252391441e..44d1ac1f7879f 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1386,7 +1386,7 @@ mysql> SELECT job_info FROM mysql.analyze_jobs ORDER BY end_time DESC LIMIT 1; > This variable is read-only for [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless). - Scope: SESSION -- Persists to cluster: No, only applicable to the current TiDB instance that you are connecting to. +- Persists to cluster: No - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No - Type: Integer - Default value: `0` @@ -5158,7 +5158,7 @@ SHOW WARNINGS; ### tidb_session_alias New in v7.4.0 - Scope: SESSION -- Persists to cluster: No, only applicable to the current TiDB instance that you are connecting to. +- Persists to cluster: No - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): Yes - Default value: "" - You can use this variable to customize the value of the `session_alias` column in the logs related to the current session, which helps identify the session in troubleshooting. This setting affects the logs of multiple nodes involved in the statement execution (including TiKV). The maximum length of this variable is limited to 64 characters, and any characters exceeding the length will be truncated automatically. Spaces at the end of the value will also be removed automatically.