Re: memory: bug or feature

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
Cc: pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: memory: bug or feature
Date: 2000-07-10 15:28:48
Message-ID: 783.963242928@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> writes:
> I'm playing with MemoryContextCheck() and I a little confuse now.
> How idea is for:
> context->initBlockSize
> context->maxBlockSize

> Must be a memory block already between this range?

No, those are just hints for allocation of default-sized blocks. They
don't constrain allocation of blocks that have to be a particular size
to accommodate a large chunk. The reason for having them is just to
allow a caller who expects that a particular context won't contain much
data to prevent a lot of wasted space from being allocated for big
default-sized blocks.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ed Loehr 2000-07-10 15:35:50 Re: Re: postgres TODO
Previous Message Tom Lane 2000-07-10 15:17:46 Re: AW: more corruption