Re: Proposal for fixing intra-query memory leaks - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Proposal for fixing intra-query memory leaks
Date
Msg-id 5011.957302769@sss.pgh.pa.us
Whole thread Raw
In response to Re: Proposal for fixing intra-query memory leaks  (Karel Zak <zakkr@zf.jcu.cz>)
Responses Re: Proposal for fixing intra-query memory leaks
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: shmem_seq may be a bad idea
Next
From: Bruce Momjian
Date:
Subject: Re: RE: [PATCHES] relation filename patch