Debian Codegraph @

mysql-test/suite/perfschema/r/dml_events_waits_history.result

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