PostgreSQL

Lock monitoring in Postgres: Find blocking queries in a lock tree with pganalyze

pganalyze has launched a Lock Monitoring feature that automatically detects locking and blocking queries in Postgres as they happen and can alert users. It replaces manual approaches based on querying the pg_locks view or walking the lock tree with pg_blocking_pids(), which require being present while the problem occurs, since lock information disappears once it resolves.

AI-written summary, checked against the cited sources. How summaries work

Read at pganalyze