mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
4e1678daca
Before this fix, the performance schema tables were defined in UPPERCASE. This was incompatible with the lowercase_table_names option, and caused issues with the install / upgrade process, when changing the lower case table names setting *after* the install or upgrade. With this fix, all performance schema tables are exposed with lowercase names. As a result, the name of the performance schema table is always lowercase, no matter how / if / when the lowercase_table_names setting if changed.
200 lines
7.9 KiB
Text
200 lines
7.9 KiB
Text
show databases;
|
|
Database
|
|
information_schema
|
|
mtr
|
|
mysql
|
|
performance_schema
|
|
test
|
|
use performance_schema;
|
|
show tables;
|
|
Tables_in_performance_schema
|
|
cond_instances
|
|
events_waits_current
|
|
events_waits_history
|
|
events_waits_history_long
|
|
events_waits_summary_by_instance
|
|
events_waits_summary_by_thread_by_event_name
|
|
events_waits_summary_global_by_event_name
|
|
file_instances
|
|
file_summary_by_event_name
|
|
file_summary_by_instance
|
|
mutex_instances
|
|
performance_timers
|
|
rwlock_instances
|
|
setup_consumers
|
|
setup_instruments
|
|
setup_timers
|
|
threads
|
|
show create table cond_instances;
|
|
Table Create Table
|
|
cond_instances CREATE TABLE `cond_instances` (
|
|
`NAME` varchar(128) NOT NULL,
|
|
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table events_waits_current;
|
|
Table Create Table
|
|
events_waits_current CREATE TABLE `events_waits_current` (
|
|
`THREAD_ID` int(11) NOT NULL,
|
|
`EVENT_ID` bigint(20) unsigned NOT NULL,
|
|
`EVENT_NAME` varchar(128) NOT NULL,
|
|
`SOURCE` varchar(64) DEFAULT NULL,
|
|
`TIMER_START` bigint(20) unsigned DEFAULT NULL,
|
|
`TIMER_END` bigint(20) unsigned DEFAULT NULL,
|
|
`TIMER_WAIT` bigint(20) unsigned DEFAULT NULL,
|
|
`SPINS` int(10) unsigned DEFAULT NULL,
|
|
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
|
|
`OBJECT_NAME` varchar(512) DEFAULT NULL,
|
|
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
|
|
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
|
`NESTING_EVENT_ID` bigint(20) unsigned DEFAULT NULL,
|
|
`OPERATION` varchar(16) NOT NULL,
|
|
`NUMBER_OF_BYTES` bigint(20) unsigned DEFAULT NULL,
|
|
`FLAGS` int(10) unsigned DEFAULT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table events_waits_history;
|
|
Table Create Table
|
|
events_waits_history CREATE TABLE `events_waits_history` (
|
|
`THREAD_ID` int(11) NOT NULL,
|
|
`EVENT_ID` bigint(20) unsigned NOT NULL,
|
|
`EVENT_NAME` varchar(128) NOT NULL,
|
|
`SOURCE` varchar(64) DEFAULT NULL,
|
|
`TIMER_START` bigint(20) unsigned DEFAULT NULL,
|
|
`TIMER_END` bigint(20) unsigned DEFAULT NULL,
|
|
`TIMER_WAIT` bigint(20) unsigned DEFAULT NULL,
|
|
`SPINS` int(10) unsigned DEFAULT NULL,
|
|
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
|
|
`OBJECT_NAME` varchar(512) DEFAULT NULL,
|
|
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
|
|
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
|
`NESTING_EVENT_ID` bigint(20) unsigned DEFAULT NULL,
|
|
`OPERATION` varchar(16) NOT NULL,
|
|
`NUMBER_OF_BYTES` bigint(20) unsigned DEFAULT NULL,
|
|
`FLAGS` int(10) unsigned DEFAULT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table events_waits_history_long;
|
|
Table Create Table
|
|
events_waits_history_long CREATE TABLE `events_waits_history_long` (
|
|
`THREAD_ID` int(11) NOT NULL,
|
|
`EVENT_ID` bigint(20) unsigned NOT NULL,
|
|
`EVENT_NAME` varchar(128) NOT NULL,
|
|
`SOURCE` varchar(64) DEFAULT NULL,
|
|
`TIMER_START` bigint(20) unsigned DEFAULT NULL,
|
|
`TIMER_END` bigint(20) unsigned DEFAULT NULL,
|
|
`TIMER_WAIT` bigint(20) unsigned DEFAULT NULL,
|
|
`SPINS` int(10) unsigned DEFAULT NULL,
|
|
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
|
|
`OBJECT_NAME` varchar(512) DEFAULT NULL,
|
|
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
|
|
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
|
`NESTING_EVENT_ID` bigint(20) unsigned DEFAULT NULL,
|
|
`OPERATION` varchar(16) NOT NULL,
|
|
`NUMBER_OF_BYTES` bigint(20) unsigned DEFAULT NULL,
|
|
`FLAGS` int(10) unsigned DEFAULT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table events_waits_summary_by_instance;
|
|
Table Create Table
|
|
events_waits_summary_by_instance CREATE TABLE `events_waits_summary_by_instance` (
|
|
`EVENT_NAME` varchar(128) NOT NULL,
|
|
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
|
`COUNT_STAR` bigint(20) unsigned NOT NULL,
|
|
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
|
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
|
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
|
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table events_waits_summary_by_thread_by_event_name;
|
|
Table Create Table
|
|
events_waits_summary_by_thread_by_event_name CREATE TABLE `events_waits_summary_by_thread_by_event_name` (
|
|
`THREAD_ID` int(11) NOT NULL,
|
|
`EVENT_NAME` varchar(128) NOT NULL,
|
|
`COUNT_STAR` bigint(20) unsigned NOT NULL,
|
|
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
|
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
|
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
|
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table events_waits_summary_global_by_event_name;
|
|
Table Create Table
|
|
events_waits_summary_global_by_event_name CREATE TABLE `events_waits_summary_global_by_event_name` (
|
|
`EVENT_NAME` varchar(128) NOT NULL,
|
|
`COUNT_STAR` bigint(20) unsigned NOT NULL,
|
|
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
|
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
|
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
|
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table file_instances;
|
|
Table Create Table
|
|
file_instances CREATE TABLE `file_instances` (
|
|
`FILE_NAME` varchar(512) NOT NULL,
|
|
`EVENT_NAME` varchar(128) NOT NULL,
|
|
`OPEN_COUNT` int(10) unsigned NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table file_summary_by_event_name;
|
|
Table Create Table
|
|
file_summary_by_event_name CREATE TABLE `file_summary_by_event_name` (
|
|
`EVENT_NAME` varchar(128) NOT NULL,
|
|
`COUNT_READ` bigint(20) unsigned NOT NULL,
|
|
`COUNT_WRITE` bigint(20) unsigned NOT NULL,
|
|
`SUM_NUMBER_OF_BYTES_READ` bigint(20) unsigned NOT NULL,
|
|
`SUM_NUMBER_OF_BYTES_WRITE` bigint(20) unsigned NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table file_summary_by_instance;
|
|
Table Create Table
|
|
file_summary_by_instance CREATE TABLE `file_summary_by_instance` (
|
|
`FILE_NAME` varchar(512) NOT NULL,
|
|
`EVENT_NAME` varchar(128) NOT NULL,
|
|
`COUNT_READ` bigint(20) unsigned NOT NULL,
|
|
`COUNT_WRITE` bigint(20) unsigned NOT NULL,
|
|
`SUM_NUMBER_OF_BYTES_READ` bigint(20) unsigned NOT NULL,
|
|
`SUM_NUMBER_OF_BYTES_WRITE` bigint(20) unsigned NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table mutex_instances;
|
|
Table Create Table
|
|
mutex_instances CREATE TABLE `mutex_instances` (
|
|
`NAME` varchar(128) NOT NULL,
|
|
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
|
`LOCKED_BY_THREAD_ID` int(11) DEFAULT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table performance_timers;
|
|
Table Create Table
|
|
performance_timers CREATE TABLE `performance_timers` (
|
|
`TIMER_NAME` enum('CYCLE','NANOSECOND','MICROSECOND','MILLISECOND','TICK') NOT NULL,
|
|
`TIMER_FREQUENCY` bigint(20) DEFAULT NULL,
|
|
`TIMER_RESOLUTION` bigint(20) DEFAULT NULL,
|
|
`TIMER_OVERHEAD` bigint(20) DEFAULT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table rwlock_instances;
|
|
Table Create Table
|
|
rwlock_instances CREATE TABLE `rwlock_instances` (
|
|
`NAME` varchar(128) NOT NULL,
|
|
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
|
`WRITE_LOCKED_BY_THREAD_ID` int(11) DEFAULT NULL,
|
|
`READ_LOCKED_BY_COUNT` int(10) unsigned NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table setup_consumers;
|
|
Table Create Table
|
|
setup_consumers CREATE TABLE `setup_consumers` (
|
|
`NAME` varchar(64) NOT NULL,
|
|
`ENABLED` enum('YES','NO') NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table setup_instruments;
|
|
Table Create Table
|
|
setup_instruments CREATE TABLE `setup_instruments` (
|
|
`NAME` varchar(128) NOT NULL,
|
|
`ENABLED` enum('YES','NO') NOT NULL,
|
|
`TIMED` enum('YES','NO') NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table setup_timers;
|
|
Table Create Table
|
|
setup_timers CREATE TABLE `setup_timers` (
|
|
`NAME` varchar(64) NOT NULL,
|
|
`TIMER_NAME` enum('CYCLE','NANOSECOND','MICROSECOND','MILLISECOND','TICK') NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
|
show create table threads;
|
|
Table Create Table
|
|
threads CREATE TABLE `threads` (
|
|
`THREAD_ID` int(11) NOT NULL,
|
|
`PROCESSLIST_ID` int(11) DEFAULT NULL,
|
|
`NAME` varchar(128) NOT NULL
|
|
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|