Craig Ringer <craig(at)2ndquadrant(dot)com> writes:
> On 20 September 2017 at 16:55, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
> wrote:
>> There is a kind of garbage collection for palloc'd memory and
>> also for other resources like file handles, but if you're using a big
>> long lived DSA area you have nothing like that.
> We need, IMO, a DSA-backed heirachical MemoryContext system.
Perhaps the ResourceManager subsystem would help here.
regards, tom lane