Re: Interesting misbehavior of repalloc()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Interesting misbehavior of repalloc()
Date: 2007-08-11 22:25:51
Message-ID: 9845.1186871151@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertram Scharpf 2007-08-11 23:05:23 Re: Wrote a connect-by feature
Previous Message April Lorenzen 2007-08-11 21:32:12 proper way to fix information_schema.key_column_usage view