3 -- echo ===
Test ANALYZE behavior after
default creation
6 CREATE
TABLE test_ps_flag (a INT) ENGINE=INNODB;
8 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
10 DROP
TABLE test_ps_flag;
12 CREATE
TABLE test_ps_flag (a INT) ENGINE=INNODB STATS_PERSISTENT=
default;
14 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
16 DROP
TABLE test_ps_flag;
20 -- echo ===
Test ANALYZE behavior after creation with
explicit PS=OFF
23 CREATE
TABLE test_ps_flag (a INT) ENGINE=INNODB STATS_PERSISTENT=0;
25 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
27 DROP
TABLE test_ps_flag;
31 -- echo ===
Test ANALYZE behavior after creation with
explicit PS=ON
34 CREATE
TABLE test_ps_flag (a INT) ENGINE=INNODB STATS_PERSISTENT=1;
36 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
38 DROP
TABLE test_ps_flag;
42 -- echo ===
Test ANALYZE behavior after creation with
explicit PS=OFF,
43 -- echo === then ALTER
to ON, then ALTER
to OFF, then ALTER
to default
46 CREATE
TABLE test_ps_flag (a INT) ENGINE=INNODB STATS_PERSISTENT=0;
48 ALTER
TABLE test_ps_flag STATS_PERSISTENT=1;
50 # also check that the change from the ALTER TABLE survives server restart
51 -- source include/restart_mysqld.inc
53 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
55 ALTER
TABLE test_ps_flag STATS_PERSISTENT=0;
57 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
59 ALTER
TABLE test_ps_flag STATS_PERSISTENT=
default;
61 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
63 DROP
TABLE test_ps_flag;
67 -- echo ===
Test ANALYZE behavior after creation with
explicit PS=ON,
68 -- echo === then ALTER
to OFF, then ALTER
to ON, then ALTER
to default
71 CREATE
TABLE test_ps_flag (a INT) ENGINE=INNODB STATS_PERSISTENT=1;
73 ALTER
TABLE test_ps_flag STATS_PERSISTENT=0;
75 # also check that the change from the ALTER TABLE survives server restart
76 -- source include/restart_mysqld.inc
78 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
80 ALTER
TABLE test_ps_flag STATS_PERSISTENT=1;
82 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
84 ALTER
TABLE test_ps_flag STATS_PERSISTENT=
default;
86 -- source suite/innodb/include/innodb_stats_table_flag_analyze.inc
88 DROP
TABLE test_ps_flag;