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,29 +1,29 @@
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.performance_timers;
|
||||
TIMER_NAME TIMER_FREQUENCY TIMER_RESOLUTION TIMER_OVERHEAD
|
||||
CYCLE <frequency> <resolution> <overhead>
|
||||
NANOSECOND <frequency> <resolution> <overhead>
|
||||
MICROSECOND <frequency> <resolution> <overhead>
|
||||
MILLISECOND <frequency> <resolution> <overhead>
|
||||
TICK <frequency> <resolution> <overhead>
|
||||
select * from performance_schema.PERFORMANCE_TIMERS
|
||||
select * from performance_schema.performance_timers
|
||||
where timer_name='CYCLE';
|
||||
TIMER_NAME TIMER_FREQUENCY TIMER_RESOLUTION TIMER_OVERHEAD
|
||||
CYCLE <frequency> <resolution> <overhead>
|
||||
insert into performance_schema.PERFORMANCE_TIMERS
|
||||
insert into performance_schema.performance_timers
|
||||
set timer_name='FOO', timer_frequency=1,
|
||||
timer_resolution=2, timer_overhead=3;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
update performance_schema.PERFORMANCE_TIMERS
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'performance_timers'
|
||||
update performance_schema.performance_timers
|
||||
set timer_frequency=12 where timer_name='CYCLE';
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
delete from performance_schema.PERFORMANCE_TIMERS;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
delete from performance_schema.PERFORMANCE_TIMERS
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'performance_timers'
|
||||
delete from performance_schema.performance_timers;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'performance_timers'
|
||||
delete from performance_schema.performance_timers
|
||||
where timer_name='CYCLE';
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
LOCK TABLES performance_schema.PERFORMANCE_TIMERS READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'performance_timers'
|
||||
LOCK TABLES performance_schema.performance_timers READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'performance_timers'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.PERFORMANCE_TIMERS WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
LOCK TABLES performance_schema.performance_timers WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'performance_timers'
|
||||
UNLOCK TABLES;
|
||||
|
Reference in New Issue
Block a user