polardbxengine/mysql-test/suite/xengine_perfschema/r/dml_setup_instruments.result

88 lines
4.2 KiB
Plaintext

select * from performance_schema.setup_instruments;
select * from performance_schema.setup_instruments
where name like 'Wait/Synch/Mutex/sql/%'
and name not in ('wait/synch/mutex/sql/DEBUG_SYNC::mutex')
order by name limit 10;
NAME ENABLED TIMED PROPERTIES VOLATILITY DOCUMENTATION
wait/synch/mutex/sql/Commit_order_manager::m_mutex YES YES 0 NULL
wait/synch/mutex/sql/Cost_constant_cache::LOCK_cost_const YES YES singleton 0 NULL
wait/synch/mutex/sql/Event_scheduler::LOCK_scheduler_state YES YES singleton 0 NULL
wait/synch/mutex/sql/Gtid_set::gtid_executed::free_intervals_mutex YES YES 0 NULL
wait/synch/mutex/sql/Gtid_state YES YES singleton 0 NULL
wait/synch/mutex/sql/hash_filo::lock YES YES 0 NULL
wait/synch/mutex/sql/key_mts_gaq_LOCK YES YES 0 NULL
wait/synch/mutex/sql/key_mts_temp_table_LOCK YES YES 0 NULL
wait/synch/mutex/sql/LOCK_acl_cache_flush YES YES singleton 0 NULL
wait/synch/mutex/sql/LOCK_audit_mask YES YES singleton 0 NULL
select * from performance_schema.setup_instruments
where name like 'Wait/Synch/Rwlock/sql/%'
and name not in (
'wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock',
'wait/synch/rwlock/sql/LOCK_named_pipe_full_access_group')
order by name limit 10;
NAME ENABLED TIMED PROPERTIES VOLATILITY DOCUMENTATION
wait/synch/rwlock/sql/Binlog_relay_IO_delegate::lock YES YES singleton 0 NULL
wait/synch/rwlock/sql/Binlog_storage_delegate::lock YES YES singleton 0 NULL
wait/synch/rwlock/sql/Binlog_transmit_delegate::lock YES YES singleton 0 NULL
wait/synch/rwlock/sql/channel_lock YES YES 0 NULL
wait/synch/rwlock/sql/channel_map_lock YES YES 0 NULL
wait/synch/rwlock/sql/channel_to_filter_lock YES YES 0 NULL
wait/synch/rwlock/sql/gtid_commit_rollback YES YES singleton 0 NULL
wait/synch/rwlock/sql/gtid_mode_lock YES YES singleton 0 NULL
wait/synch/rwlock/sql/gtid_retrieved YES YES singleton 0 NULL
wait/synch/rwlock/sql/LOCK_sql_statistics YES YES singleton 0 NULL
select * from performance_schema.setup_instruments
where name like 'Wait/Synch/Cond/sql/%'
and name not in (
'wait/synch/cond/sql/COND_open',
'wait/synch/cond/sql/COND_handler_count',
'wait/synch/cond/sql/DEBUG_SYNC::cond',
'wait/synch/cond/sql/COND_socket_listener_active',
'wait/synch/cond/sql/COND_start_signal_handler')
order by name limit 10;
NAME ENABLED TIMED PROPERTIES VOLATILITY DOCUMENTATION
wait/synch/cond/sql/Commit_order_manager::m_workers.cond YES YES 0 NULL
wait/synch/cond/sql/COND_compress_gtid_table YES YES singleton 0 NULL
wait/synch/cond/sql/COND_connection_count YES YES singleton 0 NULL
wait/synch/cond/sql/COND_flush_thread_cache YES YES singleton 0 NULL
wait/synch/cond/sql/COND_manager YES YES singleton 0 NULL
wait/synch/cond/sql/COND_queue_state YES YES singleton 0 NULL
wait/synch/cond/sql/COND_server_started YES YES singleton 0 NULL
wait/synch/cond/sql/COND_sleep_recycle_scheduler YES YES 0 NULL
wait/synch/cond/sql/COND_ssl_slot YES YES 0 NULL
wait/synch/cond/sql/COND_state_recycle_scheduler YES YES 0 NULL
select * from performance_schema.setup_instruments
where name='Wait';
select * from performance_schema.setup_instruments
where enabled='YES';
insert into performance_schema.setup_instruments
set name='FOO', enabled='YES', timed='YES';
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'setup_instruments'
update performance_schema.setup_instruments
set name='FOO';
ERROR HY000: Invalid performance_schema usage.
update performance_schema.setup_instruments
set enabled='NO';
update performance_schema.setup_instruments
set timed='NO';
select * from performance_schema.setup_instruments;
update performance_schema.setup_instruments
set enabled='YES', timed='YES';
delete from performance_schema.setup_instruments;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments'
delete from performance_schema.setup_instruments
where name like 'Wait/Synch/%';
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments'
LOCK TABLES performance_schema.setup_instruments READ;
UNLOCK TABLES;
LOCK TABLES performance_schema.setup_instruments WRITE;
UNLOCK TABLES;
# Bug#13813193 ASSERTION `TABLE->READ_SET ==
# &TABLE->DEF_READ_SET' FAILED / MYSQL_UPDATE
UPDATE performance_schema.setup_instruments SET timed='NO'
ORDER BY RAND();
update performance_schema.setup_instruments
set enabled='YES', TIMED='YES';