From c56fd5491c1469eec3e0d7c28bb2b9584f35bc07 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 33867def7e503..da29429ab0a43 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 f4b130f0b06dbe364eaaba71557aa58d924b8641 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 da29429ab0a43..3ee9a94ef8ae2 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 ecf649ecf4eb1887d611ed33e0253604a7d15cb7 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 3ee9a94ef8ae2..1b876ce3d6d52 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 3b09714150f9fbdfe5565ea4508ed312fbe943b1 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 1b876ce3d6d52..668de24696cc9 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 028ab7f0898badff18772998df6c1dca46d6977f 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 668de24696cc9..087c269d6b814 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