pgsql: Fix rounding problem in dynahash.c's decision about when the - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: Fix rounding problem in dynahash.c's decision about when the
Date
Msg-id 20041121225702.2CC333A4D9A@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix rounding problem in dynahash.c's decision about when the target
fill factor has been exceeded.  We usually run with ffactor == 1, but
the way the test was coded, it wouldn't split a bucket until the actual
fill factor reached 2.0, because of use of integer division.  Change
from > to >= so that it will split more aggressively when the table
starts to get full.

Modified Files:
--------------
    pgsql/src/backend/utils/hash:
        dynahash.c (r1.56 -> r1.57)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/hash/dynahash.c.diff?r1=1.56&r2=1.57)

pgsql-committers by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Reduce the default size of the PortalHashTable in order to save a
Next
From: conni@pgfoundry.org (User Conni)
Date:
Subject: press - pr: some changes and comments