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