Re: MemoryContextCreate change in PG 11 how should contexts becreated - Mailing list pgsql-hackers

From David Steele
Subject Re: MemoryContextCreate change in PG 11 how should contexts becreated
Date
Msg-id 03838ea4-7264-5f9e-ca0e-6df2822d793f@pgmasters.net
Whole thread Raw
In response to Re: MemoryContextCreate change in PG 11 how should contexts be created  (Paul Ramsey <pramsey@cleverelephant.ca>)
List pgsql-hackers
On 12/19/17 10:11 AM, Paul Ramsey wrote:
> On Tue, Dec 19, 2017 at 7:00 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Paul Ramsey <pramsey@cleverelephant.ca> writes:
> 
> If I'm reading right, using MemoryContextRegisterResetCallback on a
> AllocSetContext created under our PortalContext should do the trick,
> with less direct mucking about into the internals of contexts.

Be aware that this function is only available in PostgreSQL >= 9.5.

Regards,
-- 
-David
david@pgmasters.net


pgsql-hackers by date:

Previous
From: Paul Ramsey
Date:
Subject: Re: MemoryContextCreate change in PG 11 how should contexts be created
Next
From: Robert Haas
Date:
Subject: Re: access/parallel.h lacks PGDLLIMPORT