Re: hash_search and out of memory - Mailing list pgsql-hackers

From Tom Lane
Subject Re: hash_search and out of memory
Date
Msg-id 7923.1350676972@sss.pgh.pa.us
Whole thread Raw
In response to Re: hash_search and out of memory  (Hitoshi Harada <umi.tanuki@gmail.com>)
List pgsql-hackers
Hitoshi Harada <umi.tanuki@gmail.com> writes:
> OK.  Looks better.  But nentries should be bogus a little now?

No, I think it's fine as is.  Essentially this logic says "attempt to
split when the new insertion would make us go over the target fill
factor", whereas the old logic split when the just-completed insertion
reached the target.  There's not a lot of reason to care about the
precise boundary anyway, but to the extent that you believe that the
target is exact, I think this behavior is actually a bit more precise.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Support for Array ELEMENT Foreign Keys
Next
From: Andrew Dunstan
Date:
Subject: Re: [PATCH] Support for Array ELEMENT Foreign Keys