On 12/19/17 10:11 AM, Paul Ramsey wrote: > On Tue, Dec 19, 2017 at 7:00 AM, Tom Lane <t...@sss.pgh.pa.us> wrote: >> Paul Ramsey <pram...@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 da...@pgmasters.net