Adriano Lange <alange0001(at)gmail(dot)com> writes:
> I need to control the size of a memory context on the fly and take
> some actions when
> the used memory exceeds a defined size.
The existing places that do that sort of thing do their own counting
of how much they've allocated.
regards, tom lane