Re: MemoryContextCreate change in PG 11 how should contexts be created

From: David Steele <david(at)pgmasters(dot)net>
To: Paul Ramsey <pramsey(at)cleverelephant(dot)ca>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Regina Obe <lr(at)pcorp(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: MemoryContextCreate change in PG 11 how should contexts be created
Date: 2017-12-19 15:15:25
Message-ID: 03838ea4-7264-5f9e-ca0e-6df2822d793f@pgmasters.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 12/19/17 10:11 AM, Paul Ramsey wrote:
> On Tue, Dec 19, 2017 at 7:00 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Paul Ramsey <pramsey(at)cleverelephant(dot)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(at)pgmasters(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-12-19 15:24:21 Re: access/parallel.h lacks PGDLLIMPORT
Previous Message Paul Ramsey 2017-12-19 15:11:05 Re: MemoryContextCreate change in PG 11 how should contexts be created