mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
7dd4600850
Removed table SETUP_OBJECTS. Renamed table PROCESSLIST to THREADS. Renamed table EVENTS_WAITS_SUMMARY_BY_EVENT_NAME to EVENTS_WAITS_SUMMARY_GLOBAL_BY_EVENT_NAME. Adjusted Makefiles, code and tests accordingly.
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
SELECT EVENT_ID FROM performance_schema.EVENTS_WAITS_CURRENT
|
|
WHERE THREAD_ID IN
|
|
(SELECT THREAD_ID FROM performance_schema.THREADS)
|
|
AND EVENT_NAME IN
|
|
(SELECT NAME FROM performance_schema.SETUP_INSTRUMENTS
|
|
WHERE NAME LIKE "wait/synch/%")
|
|
LIMIT 1;
|
|
create table test.t1(a int) engine=performance_schema;
|
|
ERROR HY000: Invalid performance_schema usage.
|
|
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
|
ERROR HY000: Invalid performance_schema usage.
|
|
create table performance_schema.t1(a int);
|
|
ERROR 42000: CREATE command denied to user 'root'@'localhost' for table 't1'
|
|
drop table if exists test.ghost;
|
|
create table test.ghost (a int, b int);
|
|
alter table test.ghost add index index_a(a);
|
|
alter table test.ghost add index index_b(b);
|
|
insert into test.ghost values (1, 3);
|
|
insert into test.ghost values (2, 4);
|
|
select * from test.ghost;
|
|
a b
|
|
1 3
|
|
2 4
|
|
drop table test.ghost;
|
|
select * from performance_schema.FILE_INSTANCES
|
|
where file_name like "%ghost%";
|
|
FILE_NAME EVENT_NAME OPEN_COUNT
|
|
select * from performance_schema.no_such_table;
|
|
ERROR 42S02: Table 'performance_schema.no_such_table' doesn't exist
|