mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
e0e0f9e3d4
Part V: performance schema implementation
35 lines
1.4 KiB
Text
35 lines
1.4 KiB
Text
select * from performance_schema.SETUP_OBJECTS;
|
|
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED AGGREGATED
|
|
select * from performance_schema.SETUP_OBJECTS
|
|
where object_type = 'TABLE';
|
|
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED AGGREGATED
|
|
select * from performance_schema.SETUP_OBJECTS
|
|
where enabled='YES';
|
|
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED AGGREGATED
|
|
insert into performance_schema.SETUP_OBJECTS
|
|
set object_type='TABLE', object_schema='FOO', object_name='BAR',
|
|
enabled='YES', timed='YES', aggregated='YES';
|
|
ERROR HY000: Table storage engine for 'SETUP_OBJECTS' doesn't have this option
|
|
update performance_schema.SETUP_OBJECTS
|
|
set object_type='TABLE';
|
|
update performance_schema.SETUP_OBJECTS
|
|
set object_schema='ILLEGAL';
|
|
update performance_schema.SETUP_OBJECTS
|
|
set object_name='ILLEGAL';
|
|
update performance_schema.SETUP_OBJECTS
|
|
set enabled='NO';
|
|
update performance_schema.SETUP_OBJECTS
|
|
set timed='NO';
|
|
update performance_schema.SETUP_OBJECTS
|
|
set aggregated='NO';
|
|
select * from performance_schema.SETUP_OBJECTS;
|
|
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED AGGREGATED
|
|
update performance_schema.SETUP_OBJECTS
|
|
set enabled='YES', timed='YES', aggregated='YES';
|
|
delete from performance_schema.SETUP_OBJECTS
|
|
where object_type = 'TABLE';
|
|
delete from performance_schema.SETUP_OBJECTS;
|
|
LOCK TABLES performance_schema.SETUP_OBJECTS READ;
|
|
UNLOCK TABLES;
|
|
LOCK TABLES performance_schema.SETUP_OBJECTS WRITE;
|
|
UNLOCK TABLES;
|