500 Milliseconds on Planning: How PostgreSQL Statistics Slowed Down a Query 20 Times Over

When legacy decisions meet current database realities