Re: Interesting misbehavior of repalloc() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Interesting misbehavior of repalloc()
Date
Msg-id 9845.1186871151@sss.pgh.pa.us
Whole thread Raw
In response to Re: Interesting misbehavior of repalloc()  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Interesting misbehavior of repalloc()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.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


pgsql-hackers by date:

Previous
From: "April Lorenzen"
Date:
Subject: proper way to fix information_schema.key_column_usage view
Next
From: Bertram Scharpf
Date:
Subject: Re: Wrote a connect-by feature