mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug#57609 performance_schema does not work with lower_case_table_names
Before this fix, the performance schema tables were defined in UPPERCASE. This was incompatible with the lowercase_table_names option, and caused issues with the install / upgrade process, when changing the lower case table names setting *after* the install or upgrade. With this fix, all performance schema tables are exposed with lowercase names. As a result, the name of the performance schema table is always lowercase, no matter how / if / when the lowercase_table_names setting if changed.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
select * from performance_schema.setup_instruments;
|
||||
select * from performance_schema.setup_instruments
|
||||
where name like 'Wait/Synch/Mutex/sql/%'
|
||||
and name not in ('wait/synch/mutex/sql/DEBUG_SYNC::mutex')
|
||||
order by name limit 10;
|
||||
@ -14,7 +14,7 @@ wait/synch/mutex/sql/LOCK_audit_mask YES YES
|
||||
wait/synch/mutex/sql/LOCK_connection_count YES YES
|
||||
wait/synch/mutex/sql/LOCK_crypt YES YES
|
||||
wait/synch/mutex/sql/LOCK_delayed_create YES YES
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
select * from performance_schema.setup_instruments
|
||||
where name like 'Wait/Synch/Rwlock/sql/%'
|
||||
and name not in ('wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock')
|
||||
order by name limit 10;
|
||||
@ -29,7 +29,7 @@ wait/synch/rwlock/sql/MDL_context::LOCK_waiting_for YES YES
|
||||
wait/synch/rwlock/sql/MDL_lock::rwlock YES YES
|
||||
wait/synch/rwlock/sql/Query_cache_query::lock YES YES
|
||||
wait/synch/rwlock/sql/THR_LOCK_servers YES YES
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
select * from performance_schema.setup_instruments
|
||||
where name like 'Wait/Synch/Cond/sql/%'
|
||||
and name not in (
|
||||
'wait/synch/cond/sql/COND_handler_count',
|
||||
@ -46,29 +46,29 @@ wait/synch/cond/sql/COND_thread_cache YES YES
|
||||
wait/synch/cond/sql/COND_thread_count YES YES
|
||||
wait/synch/cond/sql/Delayed_insert::cond YES YES
|
||||
wait/synch/cond/sql/Delayed_insert::cond_client YES YES
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
select * from performance_schema.setup_instruments
|
||||
where name='Wait';
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
select * from performance_schema.setup_instruments
|
||||
where enabled='YES';
|
||||
insert into performance_schema.SETUP_INSTRUMENTS
|
||||
insert into performance_schema.setup_instruments
|
||||
set name='FOO', enabled='YES', timed='YES';
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'setup_instruments'
|
||||
update performance_schema.setup_instruments
|
||||
set name='FOO';
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
update performance_schema.setup_instruments
|
||||
set enabled='NO';
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
update performance_schema.setup_instruments
|
||||
set timed='NO';
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
select * from performance_schema.setup_instruments;
|
||||
update performance_schema.setup_instruments
|
||||
set enabled='YES', timed='YES';
|
||||
delete from performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
delete from performance_schema.SETUP_INSTRUMENTS
|
||||
delete from performance_schema.setup_instruments;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments'
|
||||
delete from performance_schema.setup_instruments
|
||||
where name like 'Wait/Synch/%';
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
LOCK TABLES performance_schema.SETUP_INSTRUMENTS READ;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments'
|
||||
LOCK TABLES performance_schema.setup_instruments READ;
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.SETUP_INSTRUMENTS WRITE;
|
||||
LOCK TABLES performance_schema.setup_instruments WRITE;
|
||||
UNLOCK TABLES;
|
||||
|
Reference in New Issue
Block a user