mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added procedures to delete records by keys from statistical tables.
Now when a table is dropped the statistics on the table is removed from the statistical tables. If the table is altered in such a way that a column is dropped or the type of the column is changed then statistics on the column is removed from the table column_stat. It also triggers removal of the statistics on the indexes who use this column as its component. Added procedures that changes the names of the tables or columns in the statistical tables for. These procedures are used when tables/columns are renamed. Also partly re-factored the code that introduced the persistent statistical tables. Added test cases into statistics.test to cover the new code.
This commit is contained in:
@ -17,6 +17,7 @@ substring(object_name, locate("no_index_tab", object_name)) as short_name
|
||||
from performance_schema.events_waits_history_long
|
||||
where operation not like "tell"
|
||||
and event_name like "wait/io/file/myisam/%"
|
||||
having short_name <> ""
|
||||
order by thread_id, event_id;
|
||||
event_name short_source operation number_of_bytes short_name
|
||||
wait/io/file/myisam/kfile mi_create.c: create NULL no_index_tab.MYI
|
||||
|
Reference in New Issue
Block a user