Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> We could also only do the realloc-in-place only if there isn't a 4k chunk in
> the 4k freelist. I'm imagining that usually there wouldn't be.
Or in general, if there's a free chunk of the right size then copy to
it, else consider realloc-in-place. Counterintuitive but it might work.
I'm not sure how often there wouldn't be a free chunk though ...
regards, tom lane