Re: Proposal for fixing intra-query memory leaks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal for fixing intra-query memory leaks
Дата
Msg-id 5011.957302769@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Proposal for fixing intra-query memory leaks  (Karel Zak <zakkr@zf.jcu.cz>)
Ответы Re: Proposal for fixing intra-query memory leaks  (Karel Zak <zakkr@zf.jcu.cz>)
Список pgsql-hackers
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.

And, as you saw, the links to the pfree and prealloc routines would need
to be present in standard places in the context header.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: shmem_seq may be a bad idea
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: RE: [PATCHES] relation filename patch