Tweak nestloop costing to weight restart cost of inner path more heavily.
Tom Lane <tgl@sss.pgh.pa.us>
Tweak nestloop costing to weight restart cost of inner path more heavily. Without this, it was making some pretty silly decisions about whether an expensive sub-SELECT should be the inner or outer side of a join...
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/costsize.c | modified | +12 −4 |