1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-4360: ANALYZE shows "Table is already up to date" while updating stats

- Show a line with "Engine-independent statistics collected" when ANALYZE command
  caused EITS statistics to be recollected.
This commit is contained in:
Sergey Petrunya
2014-03-28 00:32:53 +04:00
parent 42263a2b0a
commit 92e49bb066
12 changed files with 122 additions and 0 deletions

View File

@ -31,6 +31,7 @@ set histogram_size=100;
set optimizer_use_condition_selectivity=4;
analyze table t2 persistent for all;
Table Op Msg_type Msg_text
test.t2 analyze status Engine-independent statistics collected
test.t2 analyze status OK
# The following two must have the same in 'Extra' column:
explain extended select * from t2 where col1 IN (20, 180);
@ -55,6 +56,7 @@ set histogram_size=20;
set histogram_type='single_prec_hb';
analyze table t1 persistent for all;
Table Op Msg_type Msg_text
test.t1 analyze status Engine-independent statistics collected
test.t1 analyze status OK
set use_stat_tables='preferably';
set optimizer_use_condition_selectivity=4;
@ -96,6 +98,7 @@ min(col1) max(col1) count(*)
set histogram_size=100;
analyze table t1 persistent for all;
Table Op Msg_type Msg_text
test.t1 analyze status Engine-independent statistics collected
test.t1 analyze status OK
explain extended select * from t1 where col1 in (1,2,3);
id select_type table type possible_keys key key_len ref rows filtered Extra