Re: Memory context usage

From: Adriano Lange <alange0001(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Greg Smith <gsmith(at)gregsmith(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Memory context usage
Date: 2009-08-29 19:18:33
Message-ID: 4A997F09.40109@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane escreveu:
> 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.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Tiikkaja 2009-08-29 23:18:34 Re: Using results from INSERT ... RETURNING
Previous Message Jeff Janes 2009-08-29 18:57:40 Re: LWLock Queue Jumping