MySQL 服务器版本参考  /  sys 架构对象

第 6 章 sys 架构对象

以下表格显示了 MySQL 服务器中可用的所有 sys 架构对象。每个表格包含以下列

  • 名称:项目名称。

  • 引入:引入项目的版本或版本。此列仅在适用于某些项目时才会出现。

  • 已弃用:项目被弃用的版本或版本。此列仅在适用于某些项目时才会出现。

  • 已删除:项目被删除的版本或版本。此列仅在适用于某些项目时才会出现。

  • 该项目是否在相应的 MySQL 服务器发行系列中可用。如果提供了更多信息,则该指标将链接到主参考手册中的项目描述。

    如果项目在表格中显示的任何系列中曾经存在,则该项目在表格中有一行。显示的特定系列的值表示该项目在该系列中的可用性。

    • 是:该项目在所有生产就绪的通用可用性 (GA) 版本中可用。对于尚未达到 GA 状态的系列,是表示该项目在最新发布的预 GA 版本中可用。

    • 部分:该项目在某些 GA 版本中可用。如果该项目是在第一个 GA 版本之后引入的,或者从某些 GA 版本中删除,则会出现这种情况。

    • 空白:该项目在任何 GA 版本中都不可用。它要么在该系列中不存在,要么存在于预 GA 版本中,但在该系列达到 GA 状态之前被删除。

表 6.1 sys 架构表和触发器参考

表或触发器名称 5.7 8.0 8.1 8.2 8.3 8.4
sys_config
sys_config_insert_set_user
sys_config_update_set_user

表 6.2 sys 架构视图参考

视图名称 已弃用 5.7 8.0 8.1 8.2 8.3 8.4
host_summary, x$host_summary
host_summary_by_file_io, x$host_summary_by_file_io
host_summary_by_file_io_type, x$host_summary_by_file_io_type
host_summary_by_stages, x$host_summary_by_stages
host_summary_by_statement_latency, x$host_summary_by_statement_latency
host_summary_by_statement_type, x$host_summary_by_statement_type
innodb_buffer_stats_by_schema, x$innodb_buffer_stats_by_schema
innodb_buffer_stats_by_table, x$innodb_buffer_stats_by_table
innodb_lock_waits, x$innodb_lock_waits
io_by_thread_by_latency, x$io_by_thread_by_latency
io_global_by_file_by_bytes, x$io_global_by_file_by_bytes
io_global_by_file_by_latency, x$io_global_by_file_by_latency
io_global_by_wait_by_bytes, x$io_global_by_wait_by_bytes
io_global_by_wait_by_latency, x$io_global_by_wait_by_latency
latest_file_io, x$latest_file_io
memory_by_host_by_current_bytes, x$memory_by_host_by_current_bytes
memory_by_thread_by_current_bytes, x$memory_by_thread_by_current_bytes
memory_by_user_by_current_bytes, x$memory_by_user_by_current_bytes
memory_global_by_current_bytes, x$memory_global_by_current_bytes
memory_global_total, x$memory_global_total
metrics
processlist, x$processlist
ps_check_lost_instrumentation
schema_auto_increment_columns
schema_index_statistics, x$schema_index_statistics
schema_object_overview
schema_redundant_indexes
schema_table_lock_waits, x$schema_table_lock_waits
schema_table_statistics, x$schema_table_statistics
schema_table_statistics_with_buffer, x$schema_table_statistics_with_buffer
schema_tables_with_full_table_scans, x$schema_tables_with_full_table_scans
schema_unused_indexes
session, x$session
session_ssl_status
statement_analysis, x$statement_analysis
statements_with_errors_or_warnings, x$statements_with_errors_or_warnings
statements_with_full_table_scans, x$statements_with_full_table_scans
statements_with_runtimes_in_95th_percentile, x$statements_with_runtimes_in_95th_percentile
statements_with_sorting, x$statements_with_sorting
statements_with_temp_tables, x$statements_with_temp_tables
user_summary, x$user_summary
user_summary_by_file_io, x$user_summary_by_file_io
user_summary_by_file_io_type, x$user_summary_by_file_io_type
user_summary_by_stages, x$user_summary_by_stages
user_summary_by_statement_latency, x$user_summary_by_statement_latency
user_summary_by_statement_type, x$user_summary_by_statement_type
version 5.7.28, 8.0.18
wait_classes_global_by_avg_latency, x$wait_classes_global_by_avg_latency
wait_classes_global_by_latency, x$wait_classes_global_by_latency
waits_by_host_by_latency, x$waits_by_host_by_latency
waits_by_user_by_latency, x$waits_by_user_by_latency
waits_global_by_latency, x$waits_global_by_latency
x$ps_digest_95th_percentile_by_avg_us
x$ps_digest_avg_latency_distribution
x$ps_schema_table_statistics_io
x$schema_flattened_keys

表 6.3 sys 架构存储过程参考

存储过程名称 5.7 8.0 8.1 8.2 8.3 8.4
create_synonym_db()
diagnostics()
execute_prepared_stmt()
ps_setup_disable_background_threads()
ps_setup_disable_consumer()
ps_setup_disable_instrument()
ps_setup_disable_thread()
ps_setup_enable_background_threads()
ps_setup_enable_consumer()
ps_setup_enable_instrument()
ps_setup_enable_thread()
ps_setup_reload_saved()
ps_setup_reset_to_default()
ps_setup_save()
ps_setup_show_disabled()
ps_setup_show_disabled_consumers()
ps_setup_show_disabled_instruments()
ps_setup_show_enabled()
ps_setup_show_enabled_consumers()
ps_setup_show_enabled_instruments()
ps_statement_avg_latency_histogram()
ps_trace_statement_digest()
ps_trace_thread()
ps_truncate_all_tables()
statement_performance_analyzer()
table_exists()

表 6.4 sys 架构存储函数参考

存储函数名称 引入 已弃用 5.7 8.0 8.1 8.2 8.3 8.4
extract_schema_from_file_name()
extract_table_from_file_name()
format_bytes() 8.0.16
format_path()
format_statement()
format_time() 8.0.16
list_add()
list_drop()
ps_is_account_enabled()
ps_is_consumer_enabled()
ps_is_instrument_default_enabled()
ps_is_instrument_default_timed()
ps_is_thread_instrumented()
ps_thread_account()
ps_thread_id() 8.0.16
ps_thread_stack()
ps_thread_trx_info()
quote_identifier() 5.7.14 部分
sys_get_config()
version_major()
version_minor()
version_patch()