]> granicus.if.org Git - postgresql/commit
Fix rounding problem in dynahash.c's decision about when the target
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 2004 22:57:00 +0000 (22:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 2004 22:57:00 +0000 (22:57 +0000)
commit294c34bb9d8e253c3d8b0e0271e776fb0a992150
tree18282d0d66bc288524822c7576a9baafed78e091
parent7f1711f29dd6e44753d5845f707bda5fac6166a0
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.
src/backend/utils/hash/dynahash.c