How to Monitor and Fix PostgreSQL Database Locks in Rails | Hacker News Reader