Fix thinko in hash cost estimation: average frequency
authorTom Lane <[email protected]>
Sun, 10 Jun 2001 02:59:35 +0000 (02:59 +0000)
committerTom Lane <[email protected]>
Sun, 10 Jun 2001 02:59:35 +0000 (02:59 +0000)
commita8fe109ac186dea6616ec207c349ef92c214bfda
treeecd7c9ac7c001c11d5e01294a2846a01c55f0b1a
parent26c94c5d9c7ff7753dad85184adfe774b71580ff
Fix thinko in hash cost estimation: average frequency
should be computed from total number of distinct values in whole
relation, not # distinct values we expect to have after restriction
clauses are applied.
src/backend/optimizer/path/costsize.c