On Fri, 2026-04-03 at 15:56 -0400, Tom Lane wrote:
> Would it make sense to accumulate those values in a separate field
> child_mem_allocated, rather than redefining what mem_allocated
> means?
I think so unless we can't afford the new field for some reason. It
would be convenient to have the single-context-total available when
deleting the context.
I'll try a quick patch. I'll need to be sure that we can properly
decrement the total in all paths.
Regards,
Jeff Davis