Add a fudge factor to genericcostestimate() to prevent the planner from
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 24 Jul 2006 01:19:48 +0000 (01:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 24 Jul 2006 01:19:48 +0000 (01:19 +0000)
commit8dcaea7be0a548df063832a6dddb2aee55440658
tree98d0eb74298096fcae05ac5394f62888833c305f
parenta794fb06814cd9bf6199032bc31d19677d1720c6
Add a fudge factor to genericcostestimate() to prevent the planner from
thinking that indexes of different sizes are equally attractive.  Per
gripe from Jim Nasby.  (I remain unconvinced that there's such a problem
in existing releases, but CVS HEAD definitely has got a problem because
of its new count-only-leaf-pages approach to indexscan costing.)
src/backend/utils/adt/selfuncs.c