1
# Tests for PERFORMANCE_SCHEMA
3
--source include/not_embedded.inc
4
--source include/have_perfschema.inc
7
select * from performance_schema.events_waits_summary_by_instance
8
where event_name like 'Wait/Synch/%' limit 1;
10
select * from performance_schema.events_waits_summary_by_instance
11
where event_name='FOO';
13
select * from performance_schema.events_waits_summary_by_instance
14
order by count_star limit 1;
16
select * from performance_schema.events_waits_summary_by_instance
17
order by count_star desc limit 1;
19
select * from performance_schema.events_waits_summary_by_instance
20
where min_timer_wait > 0 order by count_star limit 1;
22
select * from performance_schema.events_waits_summary_by_instance
23
where min_timer_wait > 0 order by count_star desc limit 1;
26
--error ER_TABLEACCESS_DENIED_ERROR
27
insert into performance_schema.events_waits_summary_by_instance
28
set event_name='FOO', object_instance_begin=0,
29
count_star=1, sum_timer_wait=2, min_timer_wait=3,
30
avg_timer_wait=4, max_timer_wait=5;
32
--error ER_TABLEACCESS_DENIED_ERROR
33
update performance_schema.events_waits_summary_by_instance
36
--error ER_TABLEACCESS_DENIED_ERROR
37
update performance_schema.events_waits_summary_by_instance
38
set count_star=12 where event_name like "FOO";
40
--error ER_TABLEACCESS_DENIED_ERROR
41
delete from performance_schema.events_waits_summary_by_instance
44
--error ER_TABLEACCESS_DENIED_ERROR
45
delete from performance_schema.events_waits_summary_by_instance;
47
-- error ER_TABLEACCESS_DENIED_ERROR
48
LOCK TABLES performance_schema.events_waits_summary_by_instance READ;
51
-- error ER_TABLEACCESS_DENIED_ERROR
52
LOCK TABLES performance_schema.events_waits_summary_by_instance WRITE;