From 927097ebf047c8af2c6b8466c5f78614cedd1ba0 Mon Sep 17 00:00:00 2001 From: gengliqi Date: Wed, 15 Jul 2026 14:17:56 +0800 Subject: [PATCH 1/3] u Signed-off-by: gengliqi --- system-variables.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/system-variables.md b/system-variables.md index 1555a6ceb02e6..3569a2f0d3304 100644 --- a/system-variables.md +++ b/system-variables.md @@ -2164,6 +2164,17 @@ Assume that you have a cluster with 4 TiDB nodes and multiple TiKV nodes. In thi - Default value: `ON`. Before v8.3.0, the default value is `OFF`. - This variable controls whether to enable TiDB to collect `PREDICATE COLUMNS`. After enabling the collection, if you disable it, the information of previously collected `PREDICATE COLUMNS` is cleared. For details, see [Collect statistics on some columns](/statistics.md#collect-statistics-on-some-columns). +### tidb_enable_connection_event_log New in v9.0.0 + +- Scope: GLOBAL +- Persists to cluster: Yes +- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No +- Type: Boolean +- Default value: `OFF` +- Possible values: `OFF`, `ON` +- This variable controls whether TiDB writes successful login and client logout events to the TiDB log. +- In workloads that frequently create and close connections, enabling this variable can generate a large number of log entries. + ### tidb_enable_enhanced_security - Scope: NONE From 5fd7e6610e5e569335569fb9ff1df66b79577244 Mon Sep 17 00:00:00 2001 From: gengliqi Date: Wed, 15 Jul 2026 14:42:48 +0800 Subject: [PATCH 2/3] u Signed-off-by: gengliqi --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index 3569a2f0d3304..267187dec1686 100644 --- a/system-variables.md +++ b/system-variables.md @@ -2164,7 +2164,7 @@ Assume that you have a cluster with 4 TiDB nodes and multiple TiKV nodes. In thi - Default value: `ON`. Before v8.3.0, the default value is `OFF`. - This variable controls whether to enable TiDB to collect `PREDICATE COLUMNS`. After enabling the collection, if you disable it, the information of previously collected `PREDICATE COLUMNS` is cleared. For details, see [Collect statistics on some columns](/statistics.md#collect-statistics-on-some-columns). -### tidb_enable_connection_event_log New in v9.0.0 +### tidb_enable_connection_event_log New in v8.5.8 and v9.0.0 - Scope: GLOBAL - Persists to cluster: Yes From 1ecfb7f8edfc03d6db65a2797d4a6cd6553ef74e Mon Sep 17 00:00:00 2001 From: Liqi Geng Date: Thu, 16 Jul 2026 18:22:51 +0800 Subject: [PATCH 3/3] Update system-variables.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- system-variables.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system-variables.md b/system-variables.md index 267187dec1686..51632f9668508 100644 --- a/system-variables.md +++ b/system-variables.md @@ -2171,9 +2171,8 @@ Assume that you have a cluster with 4 TiDB nodes and multiple TiKV nodes. In thi - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No - Type: Boolean - Default value: `OFF` -- Possible values: `OFF`, `ON` -- This variable controls whether TiDB writes successful login and client logout events to the TiDB log. -- In workloads that frequently create and close connections, enabling this variable can generate a large number of log entries. +- This variable controls whether to write successful client login and logout events to the TiDB log. +- If your workload frequently creates and closes connections, enabling this variable can generate a large number of log entries. ### tidb_enable_enhanced_security