Thread: pgsql/src/backend/optimizer/path costsize.c

pgsql/src/backend/optimizer/path costsize.c

From
Tom Lane
Date:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/06/09 22:59:35

Modified files:
    src/backend/optimizer/path: costsize.c

Log message:
    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.