On 12/19/17 10:11 AM, Paul Ramsey wrote: > On Tue, Dec 19, 2017 at 7:00 AM, Tom Lane <[email protected]> wrote: >> Paul Ramsey <[email protected]> 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 [email protected]
