Debian Codegraph @

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

raw
1 select * from performance_schema.events_statements_current
2 where event_name like 'statement/%' limit 1;
3 select * from performance_schema.events_statements_current
4 where event_name='FOO';
5 insert into performance_schema.events_statements_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_statements_current`
9 update performance_schema.events_statements_current
10 set timer_start=12;
11 ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
12 update performance_schema.events_statements_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_statements_current`
15 delete from performance_schema.events_statements_current
16 where thread_id=1;
17 ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
18 delete from performance_schema.events_statements_current;
19 ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
20 LOCK TABLES performance_schema.events_statements_current READ;
21 ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
22 UNLOCK TABLES;
23 LOCK TABLES performance_schema.events_statements_current WRITE;
24 ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_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_statements_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 LOCK_TIME Time in picoseconds spent waiting for locks. The time is calculated in microseconds but stored in picoseconds for compatibility with other timings.
42 SQL_TEXT The SQL statement, or NULL if the command is not associated with an SQL statement.
43 DIGEST Statement digest.
44 DIGEST_TEXT Statement digest text.
45 CURRENT_SCHEMA Statement's default database for the statement, or NULL if there was none.
46 OBJECT_TYPE NULL for top level statements. The parent statement object type for nested statements (stored programs).
47 OBJECT_SCHEMA NULL for top level statements. The parent statement object schema for nested statements (stored programs).
48 OBJECT_NAME NULL for top level statements. The parent statement object name for nested statements (stored programs).
49 OBJECT_INSTANCE_BEGIN Address in memory of the statement object.
50 MYSQL_ERRNO Error code. See MariaDB Error Codes for a full list.
51 RETURNED_SQLSTATE The SQLSTATE value.
52 MESSAGE_TEXT Statement error message. See MariaDB Error Codes.
53 ERRORS 0 if SQLSTATE signifies completion (starting with 00) or warning (01), otherwise 1.
54 WARNINGS Number of warnings from the diagnostics area.
55 ROWS_AFFECTED Number of rows affected the statement affected.
56 ROWS_SENT Number of rows returned.
57 ROWS_EXAMINED Number of rows read during the statement's execution.
58 CREATED_TMP_DISK_TABLES Number of on-disk temp tables created by the statement.
59 CREATED_TMP_TABLES Number of temp tables created by the statement.
60 SELECT_FULL_JOIN Number of joins performed by the statement which did not use an index.
61 SELECT_FULL_RANGE_JOIN Number of joins performed by the statement which used a range search of the first table.
62 SELECT_RANGE Number of joins performed by the statement which used a range of the first table.
63 SELECT_RANGE_CHECK Number of joins without keys performed by the statement that check for key usage after each row.
64 SELECT_SCAN Number of joins performed by the statement which used a full scan of the first table.
65 SORT_MERGE_PASSES Number of merge passes by the sort algorithm performed by the statement. If too high, you may need to increase the sort_buffer_size.
66 SORT_RANGE Number of sorts performed by the statement which used a range.
67 SORT_ROWS Number of rows sorted by the statement.
68 SORT_SCAN Number of sorts performed by the statement which used a full table scan.
69 NO_INDEX_USED 0 if the statement performed a table scan with an index, 1 if without an index.
70 NO_GOOD_INDEX_USED 0 if a good index was found for the statement, 1 if no good index was found. See the Range checked for each record description in the EXPLAIN article.
71 NESTING_EVENT_ID NULL for top level statements. The parent statement event id for nested statements (stored programs).
72 NESTING_EVENT_TYPE NULL for top level statements. The parent statement event type for nested statements (stored programs).
73 NESTING_EVENT_LEVEL 0 for top level statements. The parent statement level plus 1 for nested statements (stored programs).