Skip to content

Commit 111803a

Browse files
authored
*: add tidb_enable_stats_owner (pingcap#19109)
1 parent 4d8fc88 commit 111803a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

system-variables.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2662,6 +2662,15 @@ mysql> SELECT job_info FROM mysql.analyze_jobs ORDER BY end_time DESC LIMIT 1;
26622662
- 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).
26632663
- 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.
26642664
2665+
### tidb_enable_stats_owner <span class="version-mark">New in v8.4.0</span>
2666+
2667+
- Scope: GLOBAL
2668+
- Persists to cluster: No, only applicable to the current TiDB instance that you are connecting to.
2669+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No
2670+
- Default value: `ON`
2671+
- Possible values: `OFF`, `ON`
2672+
- 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`.
2673+
26652674
### tidb_enable_stmt_summary <span class="version-mark">New in v3.0.4</span>
26662675
26672676
> **Note:**

tidb-configuration-file.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,13 @@ Configuration items related to read isolation.
955955
- 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)
956956
- Before v6.3.0, this configuration is set by `run-ddl`.
957957

958+
### `tidb_enable_stats_owner` <span class="version-mark">New in v8.4.0</span>
959+
960+
- This configuration controls whether the corresponding TiDB instance can run [automatic statistics update](/statistics.md#automatic-update) tasks.
961+
- Default value: `true`
962+
- Possible values: `true`, `false`
963+
- 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).
964+
958965
### `tidb_stmt_summary_enable_persistent` <span class="version-mark">New in v6.6.0</span>
959966

960967
> **Warning:**

0 commit comments

Comments
 (0)