mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-18608: Defaults for 10.4: histogram size should be set
Change the defaults: -histogram_size=0 +histogram_size=254 -histogram_type=SINGLE_PREC_HB +histogram_type=DOUBLE_PREC_HB Adjust the testcases: - Some have ignorable changes in EXPLAIN outputs and more counter increments due to EITS table reads. - Testcases that meaningfully depend on the old defaults are changed to use the old values.
This commit is contained in:
@ -6,6 +6,8 @@ select @@session.use_stat_tables;
|
||||
set @save_use_stat_tables=@@use_stat_tables;
|
||||
|
||||
set use_stat_tables='preferably';
|
||||
set @tmp_stt_hs=@@histogram_size, @tmp_stt_ht=@@histogram_type;
|
||||
set histogram_size=0, histogram_type='single_prec_hb';
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS dbt3_s001;
|
||||
@ -443,4 +445,5 @@ select * from mysql.column_stats;
|
||||
analyze
|
||||
select * from t1 where a=1 and b=3;
|
||||
drop table t1;
|
||||
set histogram_size=@tmp_stt_hs, histogram_type=@tmp_stt_ht;
|
||||
set use_stat_tables=@save_use_stat_tables;
|
||||
|
Reference in New Issue
Block a user