enable_nestloop
No restart — settable per sessionboolean (on/off)
Debug toggle that strongly discourages nested-loop joins (default on).
What it does
Inflates the cost of Nested Loop joins. Useful to verify whether a slow nested-loop plan was chosen because of a row-estimate mistake — if turning this off produces a fast hash/merge join, the planner's estimate is wrong.
How to tune it
Leave on. Off is for diagnosis only — nested loops are exactly the right join for some queries (small outer with indexed inner), and globally disabling them hurts those.
Related plan nodes
Related parameters
- enable_hashjoin
- enable_mergejoin