Useful queries to analyze PostgreSQL lock trees (a.k.a. lock queues) | Hacker News Reader