Commit 43e364c
committed
PS-9753: Investigate Optimizer patches from Enhanced MySQL
https://perconadev.atlassian.net/browse/PS-9753
This commit integrates a patch included in commit 813b18c3 of
https://github.com/enhancedformysql/mysql-8.0.40
related to the optimizer patch.
Upstream commit 9a13c1c refactored the test_quick_select() function,
removing QEP_TAB dependency.
Now, prev_tables and read_tables are passed as arguments.
get_quick_record_count() path passes nullptrs for both.
If the optimizer detected the const table in the query, this information
is not passed to test_quick_select() and may result in nonoptimal range
scan boundaries.
This patch passes const_tables to test_quick_select(), so the behavior
for get_quick_record_count() is the same as before the refactoring
mentioned above.1 parent 2df90d5 commit 43e364c
File tree
3 files changed
+47
-2
lines changed- mysql-test
- r
- t
- sql
3 files changed
+47
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6268 | 6268 | | |
6269 | 6269 | | |
6270 | 6270 | | |
| 6271 | + | |
| 6272 | + | |
| 6273 | + | |
| 6274 | + | |
6271 | 6275 | | |
6272 | | - | |
6273 | | - | |
| 6276 | + | |
| 6277 | + | |
6274 | 6278 | | |
6275 | 6279 | | |
6276 | 6280 | | |
| |||
0 commit comments