Re: Proposal for fixing intra-query memory leaks
| От | Karel Zak |
|---|---|
| Тема | Re: Proposal for fixing intra-query memory leaks |
| Дата | |
| Msg-id | Pine.LNX.3.96.1000502230853.28206B-100000@ara.zf.jcu.cz обсуждение исходный текст |
| Ответ на | Re: Proposal for fixing intra-query memory leaks (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Proposal for fixing intra-query memory leaks
|
| Список | pgsql-hackers |
On Tue, 2 May 2000, Tom Lane wrote:
> Karel Zak <zakkr@zf.jcu.cz> writes:
> > The chunk header must be relevant and same for all allocation methods and
> > must be independent on AllocSel (aset.c) code. Now, it is not. Am I right?
>
> Right. Actually it would work to have additional data before the
> standard link-to-context-plus-chunk-size fields, if a particular method
> really needed more per-chunk data. But I doubt we'd ever need that.
The chunk:
+--------------------+----------------------+-------------------+ | depend-header | standard-header |
data.............| +--------------------+----------------------+-------------------+ ^ ^
^ | | | | | pointer to chunk |
| | begin of standard chunk header |particular method header, begin of
thisheader is unknown for common routines.
IMHO in standard chunk header not must be chunk size. If something needs
chunk size it cat use depend-header.
It will very nice :-)
Karel
В списке pgsql-hackers по дате отправления: