From 7f1d9fc58811f0375c019152ba3a951f3ae22cfc Mon Sep 17 00:00:00 2001 From: qw4990 Date: Thu, 28 Nov 2024 16:34:19 +0800 Subject: [PATCH 1/5] fixup --- optimizer-fix-controls.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index 83a31304307d9..87d8e4d5184f4 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -71,6 +71,12 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - This variable sets the threshold for the optimizer's heuristic strategy to select access paths. If the estimated rows for an access path (such as `Index_A`) is much smaller than that of other access paths (default `1000` times), the optimizer skips the cost comparison and directly selects `Index_A`. - `0` means to disable this heuristic strategy. +### [`45798`](https://github.com/pingcap/tidb/issues/45798) New in v7.5.0 + +- Default value: `ON` +- Possible values: `ON`, `OFF` +- This variable controls whether to allow the Plan Cache to cache plans accessing generated columns. + ### [`47400`](https://github.com/pingcap/tidb/issues/47400) New in v8.4.0 - Default value: `ON` From a23c5ff55c391333cf760f4bbc791c9fa39dbd5f Mon Sep 17 00:00:00 2001 From: qw4990 Date: Fri, 29 Nov 2024 14:23:25 +0800 Subject: [PATCH 2/5] fixup --- optimizer-fix-controls.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index 87d8e4d5184f4..49ef9ab7d4ad6 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -77,6 +77,12 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - Possible values: `ON`, `OFF` - This variable controls whether to allow the Plan Cache to cache plans accessing generated columns. +### [`46177`](https://github.com/pingcap/tidb/issues/46177) New in v7.5.0 + +- Default value: `ON` +- Possible values: `ON`, `OFF` +- This variable controls whether to explore enforced plans during optimization if it has already found an unenforced plan. + ### [`47400`](https://github.com/pingcap/tidb/issues/47400) New in v8.4.0 - Default value: `ON` From 6d3f1467876e7f88f4cae639443473cd81d806c7 Mon Sep 17 00:00:00 2001 From: Yuanjia Zhang Date: Fri, 13 Dec 2024 13:48:11 +0800 Subject: [PATCH 3/5] Update optimizer-fix-controls.md Co-authored-by: Aolin --- optimizer-fix-controls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index 49ef9ab7d4ad6..98b05582b4f09 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -81,7 +81,7 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - Default value: `ON` - Possible values: `ON`, `OFF` -- This variable controls whether to explore enforced plans during optimization if it has already found an unenforced plan. +- This variable controls whether the optimizer explores enforced plans during query optimization after finding an unenforced plan. ### [`47400`](https://github.com/pingcap/tidb/issues/47400) New in v8.4.0 From 4a3ea460ee156ad48edc2d3cf051a9eb2804bd5f Mon Sep 17 00:00:00 2001 From: Yuanjia Zhang Date: Fri, 13 Dec 2024 13:48:21 +0800 Subject: [PATCH 4/5] Update optimizer-fix-controls.md Co-authored-by: Aolin --- optimizer-fix-controls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index 98b05582b4f09..864ee8dd4d0ba 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -77,7 +77,7 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - Possible values: `ON`, `OFF` - This variable controls whether to allow the Plan Cache to cache plans accessing generated columns. -### [`46177`](https://github.com/pingcap/tidb/issues/46177) New in v7.5.0 +### [`46177`](https://github.com/pingcap/tidb/issues/46177) New in v6.5.6, v7.1.3 and v7.5.0 - Default value: `ON` - Possible values: `ON`, `OFF` From c857bd894cc972f808ab579e532cd2e967678db2 Mon Sep 17 00:00:00 2001 From: Yuanjia Zhang Date: Fri, 13 Dec 2024 13:48:29 +0800 Subject: [PATCH 5/5] Update optimizer-fix-controls.md Co-authored-by: Aolin --- optimizer-fix-controls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index 864ee8dd4d0ba..13805bbe32e5d 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -75,7 +75,7 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - Default value: `ON` - Possible values: `ON`, `OFF` -- This variable controls whether to allow the Plan Cache to cache plans accessing generated columns. +- This variable controls whether Plan Cache is allowed to cache execution plans that access [generated columns](/generated-columns.md). ### [`46177`](https://github.com/pingcap/tidb/issues/46177) New in v6.5.6, v7.1.3 and v7.5.0