]> granicus.if.org Git - postgresql/commit
Fix (hack) IndexSelectivity():
authorVadim B. Mikheev <vadim4o@yahoo.com>
Wed, 9 Apr 1997 01:52:04 +0000 (01:52 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Wed, 9 Apr 1997 01:52:04 +0000 (01:52 +0000)
commitfa2629b7eaa46d1295843f091c45e107b19cadd7
tree0e3db6196da983726fee64c238ed24fadd567699
parentb30aa6ecb89f79871625cd7bd1d8767029e1e02a
Fix (hack) IndexSelectivity():
use sum(npages)/((nkeys == 1) ? 1 : nkeys + 1) as expected index page
estimation for multi-key quals - instead of sum(npages).
In old code npages for x > 10 and x < 20 is twice as for x > 10 - cool ?
src/backend/optimizer/util/plancat.c