/tools

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.

Blocking PID function · Lock view · Activity view