Debian Codegraph @

mysql-test/suite/innodb/r/innodb_stats_sample_pages.result

raw
1 SET GLOBAL innodb_stats_persistent_sample_pages=17;
2 CREATE TABLE test_ps_sample_pages_used (
3 a VARCHAR(512), PRIMARY KEY (a)
4 ) ENGINE=INNODB STATS_SAMPLE_PAGES=default;
5 BEGIN;
6 COMMIT;
7 ANALYZE TABLE test_ps_sample_pages_used;
8 Table Op Msg_type Msg_text
9 test.test_ps_sample_pages_used analyze status Engine-independent statistics collected
10 test.test_ps_sample_pages_used analyze status OK
11 SELECT stat_name, stat_value FROM mysql.innodb_index_stats
12 WHERE table_name='test_ps_sample_pages_used' AND stat_name='n_leaf_pages';
13 stat_name stat_value
14 n_leaf_pages 37
15 SELECT sample_size FROM mysql.innodb_index_stats
16 WHERE table_name='test_ps_sample_pages_used' AND stat_name='n_diff_pfx01';
17 sample_size
18 17
19 ALTER TABLE test_ps_sample_pages_used STATS_SAMPLE_PAGES=14;
20 ANALYZE TABLE test_ps_sample_pages_used;
21 Table Op Msg_type Msg_text
22 test.test_ps_sample_pages_used analyze status Engine-independent statistics collected
23 test.test_ps_sample_pages_used analyze status OK
24 SELECT sample_size FROM mysql.innodb_index_stats
25 WHERE table_name='test_ps_sample_pages_used' AND stat_name='n_diff_pfx01';
26 sample_size
27 14
28 DROP TABLE test_ps_sample_pages_used;
29 SET GLOBAL innodb_stats_persistent_sample_pages=default;