Re: [HACKERS] Error: dsa_area could not attach to a segment that has been freed - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Error: dsa_area could not attach to a segment that has been freed
Date
Msg-id 5111.1505914630@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Error: dsa_area could not attach to a segment that hasbeen freed  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
Craig Ringer <craig@2ndquadrant.com> writes:
> On 20 September 2017 at 16:55, Thomas Munro <thomas.munro@enterprisedb.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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] [PATCH] Generic type subscripting
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] SCRAM in the PG 10 release notes