mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
54999b2863
Merged the majority of the PFS test cases. There are still 19 failing test cases that need more attention.
48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
# Tests for PERFORMANCE_SCHEMA
|
|
|
|
--source include/not_embedded.inc
|
|
--source include/have_perfschema.inc
|
|
|
|
--source ../include/start_server_common.inc
|
|
|
|
# Expecting all off / zero
|
|
show status like "performance_schema%";
|
|
|
|
# Expect all consumers disabled
|
|
|
|
select * from performance_schema.setup_consumers;
|
|
|
|
# Expect no instruments
|
|
|
|
select * from performance_schema.setup_instruments;
|
|
|
|
select * from performance_schema.setup_actors;
|
|
select * from performance_schema.setup_objects;
|
|
select * from performance_schema.setup_timers;
|
|
|
|
# Expect INSERT to fail with an error
|
|
|
|
--error ER_WRONG_PERFSCHEMA_USAGE
|
|
insert into performance_schema.setup_objects values ('TABLE', 'myschema', 'myobject', 'YES', 'YES');
|
|
|
|
--error ER_WRONG_PERFSCHEMA_USAGE
|
|
insert into performance_schema.setup_actors values ('myhost', 'mysuser', 'myrole');
|
|
|
|
# Expect SELECT, UPDATE, DELETE and TRUNCATE to affect 0 rows, but with
|
|
# no error because the target row(s) will not be found
|
|
|
|
select * from performance_schema.setup_objects;
|
|
update performance_schema.setup_objects set OBJECT_NAME = 'myobject';
|
|
delete from performance_schema.setup_objects;
|
|
|
|
select * from performance_schema.setup_actors;
|
|
update performance_schema.setup_actors set HOST = 'myhost';
|
|
delete from performance_schema.setup_actors;
|
|
|
|
truncate performance_schema.events_stages_history_long;
|
|
truncate performance_schema.events_statements_history_long;
|
|
truncate performance_schema.events_waits_history_long;
|
|
truncate performance_schema.setup_objects;
|
|
truncate performance_schema.setup_actors;
|
|
|
|
|