Fix rounding problem in dynahash.c's decision about when the target

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 294c34bb9d8e253c3d8b0e0271e776fb0a992150
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-11-21T22:57:00Z
Releases: 8.0.0
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.

Files

PathChange+/−
src/backend/utils/hash/dynahash.c modified +2 −2