| 1 |
select * from performance_schema.file_summary_by_event_name |
| 2 |
where event_name like 'Wait/io/%' limit 1; |
| 3 |
select * from performance_schema.file_summary_by_event_name |
| 4 |
where event_name='FOO'; |
| 5 |
insert into performance_schema.file_summary_by_event_name |
| 6 |
set event_name='FOO', count_read=1, count_write=2, |
| 7 |
sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; |
| 8 |
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` |
| 9 |
update performance_schema.file_summary_by_event_name |
| 10 |
set count_read=12; |
| 11 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` |
| 12 |
update performance_schema.file_summary_by_event_name |
| 13 |
set count_write=12 where event_name like "FOO"; |
| 14 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` |
| 15 |
delete from performance_schema.file_summary_by_event_name |
| 16 |
where count_read=1; |
| 17 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` |
| 18 |
delete from performance_schema.file_summary_by_event_name; |
| 19 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` |
| 20 |
LOCK TABLES performance_schema.file_summary_by_event_name READ; |
| 21 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` |
| 22 |
UNLOCK TABLES; |
| 23 |
LOCK TABLES performance_schema.file_summary_by_event_name WRITE; |
| 24 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` |
| 25 |
UNLOCK TABLES; |
| 26 |
# |
| 27 |
# MDEV-25325 column_comment for performance_schema tables |
| 28 |
# |
| 29 |
select column_name, column_comment |
| 30 |
from information_schema.columns |
| 31 |
where table_schema='performance_schema' and table_name='file_summary_by_event_name'; |
| 32 |
column_name column_comment |
| 33 |
EVENT_NAME Event name. |
| 34 |
COUNT_STAR Number of summarized events |
| 35 |
SUM_TIMER_WAIT Total wait time of the summarized events that are timed. |
| 36 |
MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. |
| 37 |
AVG_TIMER_WAIT Average wait time of the summarized events that are timed. |
| 38 |
MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. |
| 39 |
COUNT_READ Number of all read operations, including FGETS, FGETC, FREAD, and READ. |
| 40 |
SUM_TIMER_READ Total wait time of all read operations that are timed. |
| 41 |
MIN_TIMER_READ Minimum wait time of all read operations that are timed. |
| 42 |
AVG_TIMER_READ Average wait time of all read operations that are timed. |
| 43 |
MAX_TIMER_READ Maximum wait time of all read operations that are timed. |
| 44 |
SUM_NUMBER_OF_BYTES_READ Bytes read by read operations. |
| 45 |
COUNT_WRITE Number of all write operations, including FPUTS, FPUTC, FPRINTF, VFPRINTF, FWRITE, and PWRITE. |
| 46 |
SUM_TIMER_WRITE Total wait time of all write operations that are timed. |
| 47 |
MIN_TIMER_WRITE Minimum wait time of all write operations that are timed. |
| 48 |
AVG_TIMER_WRITE Average wait time of all write operations that are timed. |
| 49 |
MAX_TIMER_WRITE Maximum wait time of all write operations that are timed. |
| 50 |
SUM_NUMBER_OF_BYTES_WRITE Bytes written by write operations. |
| 51 |
COUNT_MISC Number of all miscellaneous operations not counted above, including CREATE, DELETE, OPEN, CLOSE, STREAM_OPEN, STREAM_CLOSE, SEEK, TELL, FLUSH, STAT, FSTAT, CHSIZE, RENAME, and SYNC. |
| 52 |
SUM_TIMER_MISC Total wait time of all miscellaneous operations that are timed. |
| 53 |
MIN_TIMER_MISC Minimum wait time of all miscellaneous operations that are timed. |
| 54 |
AVG_TIMER_MISC Average wait time of all miscellaneous operations that are timed. |
| 55 |
MAX_TIMER_MISC Maximum wait time of all miscellaneous operations that are timed. |