Re: Memory context usage - Mailing list pgsql-hackers

From Adriano Lange
Subject Re: Memory context usage
Date
Msg-id 4A997F09.40109@gmail.com
Whole thread Raw
In response to Re: Memory context usage  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane escreveu:
> Adriano Lange <alange0001@gmail.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.

I have seen that the AllocSet structure is hid by MemoryContext which 
has only a stderr output interface for its stats. I would need these 
stats internally but maybe this is only my demand for now.

Thanks for attention.

Adriano


pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: LWLock Queue Jumping
Next
From: Marko Tiikkaja
Date:
Subject: Re: Using results from INSERT ... RETURNING