28.4.1 sys Schema Object Index

The following tables list sys schema objects and provide a short description of each one.

Table 28.1 sys Schema Tables and Triggers

Table or Trigger NameDescription
sys_configsys schema configuration options table
sys_config_insert_set_usersys_config insert trigger
sys_config_update_set_usersys_config update trigger

Table 28.2 sys Schema Views

View NameDescription
host_summary, x$host_summaryStatement activity, file I/O, and connections, grouped by host
host_summary_by_file_io, x$host_summary_by_file_ioFile I/O, grouped by host
host_summary_by_file_io_type, x$host_summary_by_file_io_typeFile I/O, grouped by host and event type
host_summary_by_stages, x$host_summary_by_stagesStatement stages, grouped by host
host_summary_by_statement_latency, x$host_summary_by_statement_latencyStatement statistics, grouped by host
host_summary_by_statement_type, x$host_summary_by_statement_typeStatements executed, grouped by host and statement
innodb_buffer_stats_by_schema, x$innodb_buffer_stats_by_schemaInnoDB buffer information, grouped by schema
innodb_buffer_stats_by_table, x$innodb_buffer_stats_by_tableInnoDB buffer information, grouped by schema and table
innodb_lock_waits, x$innodb_lock_waitsInnoDB lock information
io_by_thread_by_latency, x$io_by_thread_by_latencyI/O consumers, grouped by thread
io_global_by_file_by_bytes, x$io_global_by_file_by_bytesGlobal I/O consumers, grouped by file and bytes
io_global_by_file_by_latency, x$io_global_by_file_by_latencyGlobal I/O consumers, grouped by file and latency
io_global_by_wait_by_bytes, x$io_global_by_wait_by_bytesGlobal I/O consumers, grouped by bytes
io_global_by_wait_by_latency, x$io_global_by_wait_by_latencyGlobal I/O consumers, grouped by latency
latest_file_io, x$latest_file_ioMost recent I/O, grouped by file and thread
memory_by_host_by_current_bytes, x$memory_by_host_by_current_bytesMemory use, grouped by host
memory_by_thread_by_current_bytes, x$memory_by_thread_by_current_bytesMemory use, grouped by thread
memory_by_user_by_current_bytes, x$memory_by_user_by_current_bytesMemory use, grouped by user
memory_global_by_current_bytes, x$memory_global_by_current_bytesMemory use, grouped by allocation type
memory_global_total, x$memory_global_totalTotal memory use
metricsServer metrics
processlist, x$processlistProcesslist information
ps_check_lost_instrumentationVariables that have lost instruments
schema_auto_increment_columnsAUTO_INCREMENT column information
schema_index_statistics, x$schema_index_statisticsIndex statistics
schema_object_overviewTypes of objects within each schema
schema_redundant_indexesDuplicate or redundant indexes
schema_table_lock_waits, x$schema_table_lock_waitsSessions waiting for metadata locks
schema_table_statistics, x$schema_table_statisticsTable statistics
schema_table_statistics_with_buffer, x$schema_table_statistics_with_bufferTable statistics, including InnoDB buffer pool statistics
schema_tables_with_full_table_scans, x$schema_tables_with_full_table_scansTables being accessed with full scans
schema_unused_indexesIndexes not in active use
session, x$sessionProcesslist information for user sessions
session_ssl_statusConnection SSL information
statement_analysis, x$statement_analysisStatement aggregate statistics
statements_with_errors_or_warnings, x$statements_with_errors_or_warningsStatements that have produced errors or warnings
statements_with_full_table_scans, x$statements_with_full_table_scansStatements that have done full table scans
statements_with_runtimes_in_95th_percentile, x$statements_with_runtimes_in_95th_percentileStatements with highest average runtime
statements_with_sorting, x$statements_with_sortingStatements that performed sorts
statements_with_temp_tables, x$statements_with_temp_tablesStatements that used temporary tables
user_summary, x$user_summaryUser statement and connection activity
user_summary_by_file_io, x$user_summary_by_file_ioFile I/O, grouped by user
user_summary_by_file_io_type, x$user_summary_by_file_io_typeFile I/O, grouped by user and event
user_summary_by_stages, x$user_summary_by_stagesStage events, grouped by user
user_summary_by_statement_latency, x$user_summary_by_statement_latencyStatement statistics, grouped by user
user_summary_by_statement_type, x$user_summary_by_statement_typeStatements executed, grouped by user and statement
versionCurrent sys schema and MySQL server versions
wait_classes_global_by_avg_latency, x$wait_classes_global_by_avg_latencyWait class average latency, grouped by event class
wait_classes_global_by_latency, x$wait_classes_global_by_latencyWait class total latency, grouped by event class
waits_by_host_by_latency, x$waits_by_host_by_latencyWait events, grouped by host and event
waits_by_user_by_latency, x$waits_by_user_by_latencyWait events, grouped by user and event
waits_global_by_latency, x$waits_global_by_latencyWait events, grouped by event
x$ps_digest_95th_percentile_by_avg_usHelper view for 95th-percentile views
x$ps_digest_avg_latency_distributionHelper view for 95th-percentile views
x$ps_schema_table_statistics_ioHelper view for table-statistics views
x$schema_flattened_keysHelper view for schema_redundant_indexes

Table 28.3 sys Schema Stored Procedures

Procedure NameDescription
create_synonym_db()Create synonym for schema
diagnostics()Collect system diagnostic information
execute_prepared_stmt()Execute prepared statement
ps_setup_disable_background_threads()Disable background thread instrumentation
ps_setup_disable_consumer()Disable consumers
ps_setup_disable_instrument()Disable instruments
ps_setup_disable_thread()Disable instrumentation for thread
ps_setup_enable_background_threads()Enable background thread instrumentation
ps_setup_enable_consumer()Enable consumers
ps_setup_enable_instrument()Enable instruments
ps_setup_enable_thread()Enable instrumentation for thread
ps_setup_reload_saved()Reload saved Performance Schema configuration
ps_setup_reset_to_default()Reset saved Performance Schema configuration
ps_setup_save()Save Performance Schema configuration
ps_setup_show_disabled()Display disabled Performance Schema configuration
ps_setup_show_disabled_consumers()Display disabled Performance Schema consumers
ps_setup_show_disabled_instruments()Display disabled Performance Schema instruments
ps_setup_show_enabled()Display enabled Performance Schema configuration
ps_setup_show_enabled_consumers()Display enabled Performance Schema consumers
ps_setup_show_enabled_instruments()Display enabled Performance Schema instruments
ps_statement_avg_latency_histogram()Display statement latency histogram
ps_trace_statement_digest()Trace Performance Schema instrumentation for digest
ps_trace_thread()Dump Performance Schema data for thread
ps_truncate_all_tables()Truncate Performance Schema summary tables
statement_performance_analyzer()Report of statements running on server
table_exists()Whether a table exists

Table 28.4 sys Schema Stored Functions

Function NameDescription
extract_schema_from_file_name()Extract schema name from file path name
extract_table_from_file_name()Extract table name from file path name
format_bytes()Convert byte count to value with units
format_path()Replace data and temp-file directories in path name with symbolic values
format_statement()Truncate long statement to fixed length
format_time()Convert picoseconds value to value with units
list_add()Add item to list
list_drop()Remove item from list
ps_is_account_enabled()Check whether account instrumentation is enabled
ps_is_consumer_enabled()Check whether consumer is enabled
ps_is_instrument_default_enabled()Check whether instrument is enabled
ps_is_instrument_default_timed()Check whether instrument is timed
ps_is_thread_instrumented()Check whether thread is instrumented
ps_thread_account()Return account for thread ID
ps_thread_id()Return thread ID for connection ID
ps_thread_stack()Return event information for thread ID
ps_thread_trx_info()Return transaction information for thread ID
quote_identifier()Return string as quoted identifier
sys_get_config()Return sys schema configuration option
version_major()MySQL server major version number
version_minor()MySQL server minor version number
version_patch()MySQL server patch release version number