| 1 |
select * from performance_schema.events_statements_summary_global_by_event_name |
| 2 |
where event_name like 'statement/%' limit 1; |
| 3 |
select * from performance_schema.events_statements_summary_global_by_event_name |
| 4 |
where event_name='FOO'; |
| 5 |
insert into performance_schema.events_statements_summary_global_by_event_name |
| 6 |
set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3, |
| 7 |
avg_timer_wait=4, max_timer_wait=5; |
| 8 |
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` |
| 9 |
update performance_schema.events_statements_summary_global_by_event_name |
| 10 |
set count_star=12; |
| 11 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` |
| 12 |
update performance_schema.events_statements_summary_global_by_event_name |
| 13 |
set count_star=12 where event_name like "FOO"; |
| 14 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` |
| 15 |
delete from performance_schema.events_statements_summary_global_by_event_name |
| 16 |
where count_star=1; |
| 17 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` |
| 18 |
delete from performance_schema.events_statements_summary_global_by_event_name; |
| 19 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` |
| 20 |
LOCK TABLES performance_schema.events_statements_summary_global_by_event_name READ; |
| 21 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` |
| 22 |
UNLOCK TABLES; |
| 23 |
LOCK TABLES performance_schema.events_statements_summary_global_by_event_name WRITE; |
| 24 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_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='events_statements_summary_global_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 |
SUM_LOCK_TIME Sum of the LOCK_TIME column in the events_statements_current table. |
| 40 |
SUM_ERRORS Sum of the ERRORS column in the events_statements_current table. |
| 41 |
SUM_WARNINGS Sum of the WARNINGS column in the events_statements_current table. |
| 42 |
SUM_ROWS_AFFECTED Sum of the ROWS_AFFECTED column in the events_statements_current table. |
| 43 |
SUM_ROWS_SENT Sum of the ROWS_SENT column in the events_statements_current table. |
| 44 |
SUM_ROWS_EXAMINED Sum of the ROWS_EXAMINED column in the events_statements_current table. |
| 45 |
SUM_CREATED_TMP_DISK_TABLES Sum of the CREATED_TMP_DISK_TABLES column in the events_statements_current table. |
| 46 |
SUM_CREATED_TMP_TABLES Sum of the CREATED_TMP_TABLES column in the events_statements_current table. |
| 47 |
SUM_SELECT_FULL_JOIN Sum of the SELECT_FULL_JOIN column in the events_statements_current table. |
| 48 |
SUM_SELECT_FULL_RANGE_JOIN Sum of the SELECT_FULL_RANGE_JOIN column in the events_statements_current table. |
| 49 |
SUM_SELECT_RANGE Sum of the SELECT_RANGE column in the events_statements_current table. |
| 50 |
SUM_SELECT_RANGE_CHECK Sum of the SELECT_RANGE_CHECK column in the events_statements_current table. |
| 51 |
SUM_SELECT_SCAN Sum of the SELECT_SCAN column in the events_statements_current table. |
| 52 |
SUM_SORT_MERGE_PASSES Sum of the SORT_MERGE_PASSES column in the events_statements_current table. |
| 53 |
SUM_SORT_RANGE Sum of the SORT_RANGE column in the events_statements_current table. |
| 54 |
SUM_SORT_ROWS Sum of the SORT_ROWS column in the events_statements_current table. |
| 55 |
SUM_SORT_SCAN Sum of the SORT_SCAN column in the events_statements_current table. |
| 56 |
SUM_NO_INDEX_USED Sum of the NO_INDEX_USED column in the events_statements_current table. |
| 57 |
SUM_NO_GOOD_INDEX_USED Sum of the NO_GOOD_INDEX_USED column in the events_statements_current table. |