Lock and blocking visualizer
Follow reported blockers and their downstream impact from a local activity snapshot. No database connection, live polling or session-control actions.
Capture a blocking snapshot
Run the read-only export below in your PostgreSQL client. It captures pg_stat_activity, pg_blocking_pids(), relevant pg_locks rows and prepared-transaction context. The browser never runs it. Capture when needed; repeated lock-manager queries have a cost.
Accepts the exported JSON object, a JSON activity array, or CSV with one row per process and a header. Include pid and blocking_pids (JSON array or PostgreSQL array such as {101,202}). Lock rows are optional context. Missing blocker lists remain unknown; relation IDs alone do not establish a blocking edge.
Parallel workers are grouped by their leader. PID 0 is a prepared-transaction reference, not a backend PID or a known GID. Cross-group cycles are flagged for investigation rather than declared persistent deadlocks. Restricted export privileges can hide SQL and timing fields.
Prepared export
Snapshot interpretation
Terminal sources and reported cycles
Sources at the top of the sampled graph. A missing row is an unknown source, not a proven root cause. Affected-group counts can overlap and must not be added.
Activity and reference groups
Prepared transaction context
These records are context from the export. No specific GID is assigned to a PID-0 graph marker from blocking PID lists alone.