| 1 |
select * from performance_schema.events_waits_current |
| 2 |
where event_name like 'Wait/Synch/%' limit 1; |
| 3 |
select * from performance_schema.events_waits_current |
| 4 |
where event_name='FOO'; |
| 5 |
insert into performance_schema.events_waits_current |
| 6 |
set thread_id='1', event_id=1, |
| 7 |
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; |
| 8 |
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` |
| 9 |
update performance_schema.events_waits_current |
| 10 |
set timer_start=12; |
| 11 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` |
| 12 |
update performance_schema.events_waits_current |
| 13 |
set timer_start=12 where thread_id=0; |
| 14 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` |
| 15 |
delete from performance_schema.events_waits_current |
| 16 |
where thread_id=1; |
| 17 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` |
| 18 |
delete from performance_schema.events_waits_current; |
| 19 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` |
| 20 |
LOCK TABLES performance_schema.events_waits_current READ; |
| 21 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` |
| 22 |
UNLOCK TABLES; |
| 23 |
LOCK TABLES performance_schema.events_waits_current WRITE; |
| 24 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` |
| 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_waits_current'; |
| 32 |
column_name column_comment |
| 33 |
THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. |
| 34 |
EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. |
| 35 |
END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. |
| 36 |
EVENT_NAME Event instrument name and a NAME from the setup_instruments table |
| 37 |
SOURCE Name and line number of the source file containing the instrumented code that produced the event. |
| 38 |
TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. |
| 39 |
TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. |
| 40 |
TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. |
| 41 |
SPINS Number of spin rounds for a mutex, or NULL if spin rounds are not used, or spinning is not instrumented. |
| 42 |
OBJECT_SCHEMA Name of the schema that contains the table for table I/O objects, otherwise NULL for file I/O and synchronization objects. |
| 43 |
OBJECT_NAME File name for file I/O objects, table name for table I/O objects, the socket's IP:PORT value for a socket object or NULL for a synchronization object. |
| 44 |
INDEX_NAME Name of the index, PRIMARY for the primary key, or NULL for no index used. |
| 45 |
OBJECT_TYPE FILE for a file object, TABLE or TEMPORARY TABLE for a table object, or NULL for a synchronization object. |
| 46 |
OBJECT_INSTANCE_BEGIN Address in memory of the object. |
| 47 |
NESTING_EVENT_ID EVENT_ID of event within which this event nests. |
| 48 |
NESTING_EVENT_TYPE Nesting event type. Either statement, stage or wait. |
| 49 |
OPERATION Operation type, for example read, write or lock |
| 50 |
NUMBER_OF_BYTES Number of bytes that the operation read or wrote, or NULL for table I/O waits. |
| 51 |
FLAGS Reserved for use in the future. |