Skip to content

progress: running maintenance and index builds

Inspect running VACUUM, CREATE INDEX, CLUSTER / VACUUM FULL, and KES CHECKPOINT operations.

Reads sys_stat_progress_vacuum, sys_stat_progress_create_index, sys_stat_progress_cluster, and sys_stat_progress_checkpoint across the instance. Read-only: never starts or cancels maintenance operations.

Phase progress reflects only the current stage (for example, block scan or sort), not total ETA. ANALYZE and base backups have no progress views in KES V8R6/V9.

Usage

kbdiag progress
kbdiag progress --json

Key Options

OptionEffect
--jsonEmit structured JSON (progress.list, progress.checkpoint)

Verdict & Reading Output

  • OK (exit=0): Both progress probes succeeded without redacted rows. When CREATE INDEX CONCURRENTLY is waiting on older transactions, a [NEXT] hint points to kbdiag lock.
  • UNKNOWN (exit=3): A progress view failed/timed out or rows were hidden from non-monitoring users ([REDACTED] progress.list.phase). Incomplete probes never claim no operations are running.

Example (KES V9 Primary, COLUMNS=80)

progress  OK  (primary, system@local, endpoint=/tmp/.s.KINGBASE.54321, db=test,
    2026-12-02T16:02:22Z)
[RUNNING]
  1
  pid 94505  CREATE INDEX CONCURRENTLY  db=test  rel=kb_prog_day3.big  1s
    phase=waiting for old snapshots (1 waiting txns)  progress=42 / 43 blocks
    (97%)
[NEXT]
  kbdiag lock  # inspect transactions holding back waiting index build
  • kbdiag lock — inspect blockers when CREATE INDEX CONCURRENTLY waits on older transactions
  • kbdiag vacuum — current-database dead tuples and autovacuum switches
  • kbdiag checkpoint — background writer, fsync, and checkpoint intervals