说明
此表显示有关 ClickHouse 服务器的警告。 相同类型的警告会合并为一条。 例如,如果已附加的数据库数量 N 超过可配置的阈值 T,则会显示一条包含当前值 N 的记录,而不是 N 条单独的记录。 如果当前值降到阈值以下,该记录就会从表中移除。
该表可通过以下设置进行配置:
- max_table_num_to_warn
- max_database_num_to_warn
- max_dictionary_num_to_warn
- max_view_num_to_warn
- max_part_num_to_warn
- max_pending_mutations_to_warn
- max_pending_mutations_execution_time_to_warn
- max_named_collection_num_to_warn
- resource_overload_warnings
列
message(String) — 警告信息。message_format_string(LowCardinality(String)) — 用于格式化该消息的格式字符串。
示例
SELECT * FROM system.warnings LIMIT 2 \G;Row 1:
──────
message: The number of active parts is more than 10.
message_format_string: The number of active parts is more than {}.
Row 2:
──────
message: The number of attached databases is more than 2.
message_format_string: The number of attached databases is more than {}.