Mar 2026PostgreSQL2 min readAdding an index made it slower, and that was correctA short story about statistics, a very selective index the planner refused to use, and why it was right to refuse.