Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

system.background_schedule_pool_log

Description

The system.background_schedule_pool_log table is created only if the background_schedule_pool_log server setting is specified.

This table contains the history of background schedule pool task executions. Background schedule pools are used for executing periodic tasks such as distributed sends, buffer flushes, and message broker operations.

Columns

  • hostname (LowCardinality(String)) — Hostname of the server executing the query.
  • event_date (Date) — Event date.
  • event_time (DateTime) — Event time.
  • event_time_microseconds (DateTime64(6)) — Event time with microseconds precision.
  • query_id (String) — Identifier of the query associated with the background task.
  • database (LowCardinality(String)) — Name of the database.
  • table (LowCardinality(String)) — Name of the table.
  • table_uuid (UUID) — UUID of the table the background task belongs to.
  • log_name (LowCardinality(String)) — Name of the background task.
  • duration_ms (UInt64) — Duration of the task execution in milliseconds.
  • error (UInt16) — The error code of the occurred exception.
  • exception (String) — Text message of the occurred error.

The system.background_schedule_pool_log table is created after the first background task execution.

Example

SELECT * FROM system.background_schedule_pool_log LIMIT 1 FORMAT Vertical;
Row 1:
──────
hostname:                clickhouse.eu-central1.internal
event_date:              2025-12-18
event_time:              2025-12-18 10:30:15
event_time_microseconds: 2025-12-18 10:30:15.123456
query_id:
database:                default
table:                   data
table_uuid:              00000000-0000-0000-0000-000000000000
log_name:                default.data
duration_ms:             42
error:                   0
exception:

See also

Navigation