]> granicus.if.org Git - postgresql/commit
If we cannot get a real estimate for the selectivity of a range query,
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Mar 2000 00:58:36 +0000 (00:58 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Mar 2000 00:58:36 +0000 (00:58 +0000)
commit1afaa2557adb86cef224982093201ad035588eeb
tree8111a81e5c4cb85466336ee867d1e8337df3d3dc
parentcad764f349a535459e60926ed11e31c867d2ccd3
If we cannot get a real estimate for the selectivity of a range query,
use a default value that's fairly small.  We were generating a result
of about 0.1, but I think 0.01 is probably better --- want to encourage
use of an indexscan in this situation.
src/backend/optimizer/path/clausesel.c