1 post.
The planner estimates costs for every query plan. When those estimates are wrong, performance degrades. Here is how to find and fix planner misestimation.