1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge branch '10.11' into 11.2

This commit is contained in:
Oleksandr Byelkin
2024-10-29 16:39:47 +01:00
660 changed files with 8148 additions and 3604 deletions

View File

@ -233,29 +233,33 @@ create table t1 (
);
insert into t1
select
select
seq, FLOOR(seq/100), 'filler'
from
from
seq_1_to_1000;
analyze table t1;
set optimizer_trace=1;
explain select * from t1
explain select * from t1
where
pk in (1,2,3,4,5) and
key1 <= 4;
create temporary table opt_trace as
select * from information_schema.optimizer_trace;
--echo # 11.0+ will not attempt to use selectivity(key1):
select
select
json_detailed(json_extract(trace,'$**.selectivity_for_indexes')) as JS
from
information_schema.optimizer_trace;
from
opt_trace;
--echo # Must not include 1.79...e308 as cost:
select
select
json_detailed(json_extract(trace,'$**.best_access_path')) as JS
from
information_schema.optimizer_trace;
from
opt_trace;
drop table opt_trace;
drop table t1;
--echo #