diff --git a/system-variables.md b/system-variables.md index 46cf033fcc43b..55ed1e12baf0e 100644 --- a/system-variables.md +++ b/system-variables.md @@ -2660,6 +2660,15 @@ mysql> SELECT job_info FROM mysql.analyze_jobs ORDER BY end_time DESC LIMIT 1; - Controls whether to enable the temporary storage for some operators when a single SQL statement exceeds the memory quota specified by the system variable [`tidb_mem_quota_query`](/system-variables.md#tidb_mem_quota_query). - Before v6.3.0, you can enable or disable this feature by using the TiDB configuration item `oom-use-tmp-storage`. After upgrading the cluster to v6.3.0 or a later version, the TiDB cluster will initialize this variable using the value of `oom-use-tmp-storage` automatically. After that, changing the value of `oom-use-tmp-storage` **does not** take effect anymore. +### tidb_enable_stats_owner New in v8.4.0 + +- Scope: GLOBAL +- 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 +- Default value: `ON` +- Possible values: `OFF`, `ON` +- This variable controls whether the corresponding TiDB instance can run [automatic statistics update](/statistics.md#automatic-update) tasks. If there is only one TiDB instance in the current TiDB cluster, you cannot disable automatic statistics update on this instance, which means you cannot set this variable to `OFF`. + ### tidb_enable_stmt_summary New in v3.0.4 > **Note:** diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index 33bd4cf513ff7..05a8eb6fe8201 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -954,6 +954,13 @@ Configuration items related to read isolation. - The value of this configuration will initialize the value of the system variable [`tidb_enable_ddl`](/system-variables.md#tidb_enable_ddl-new-in-v630) - Before v6.3.0, this configuration is set by `run-ddl`. +### `tidb_enable_stats_owner` New in v8.4.0 + +- This configuration controls whether the corresponding TiDB instance can run [automatic statistics update](/statistics.md#automatic-update) tasks. +- Default value: `true` +- Possible values: `true`, `false` +- The value of this configuration will initialize the value of the system variable [`tidb_enable_stats_owner`](/system-variables.md#tidb_enable_stats_owner-new-in-v840). + ### `tidb_stmt_summary_enable_persistent` New in v6.6.0 > **Warning:**