Troubleshooting scenarios
Follow lock chains and distinguish active SQL from cumulative workload.
Start with kbdiag status and kbdiag check. Verify target identity, coverage and node role, then follow one diagnostic chain.
- Lock waits:
`lock --tree`→`session <pid>`→`txn` - Slow SQL:
`session waits`→`sql top`→`sql show --id=<int64>`
Storage and horizon investigations continue through space, wal archive, slots, vacuum, freeze and object table [name]. No scenario triggers automatic repair.
Find blockers, queued DDL predecessors and the transaction owner.
Separate instantaneous waits, cumulative counters and active query identity.