Debugging PostgreSQL performance, the hard way · JustWatch Tech Blog