[pgpool-hackers: 569] Re: Memory contexts
m.usama at gmail.com
Fri Jul 4 19:07:14 JST 2014
On Fri, Jul 4, 2014 at 3:02 PM, Tatsuo Ishii <ishii at postgresql.org> wrote:
> > Hi Usama,
> > Is there any documentation regarding memory contexts? I saw these in
> > mcxt.c but except ProcessLoopContext, there's no documention about
> > purposes for these memory context usage.
> > MemoryContext TopMemoryContext = NULL;
> > MemoryContext ErrorContext = NULL;
> > MemoryContext ProcessLoopContext = NULL; /* This context resets at every
> main loop iteration of a process */
> > MemoryContext CacheMemoryContext = NULL;
> > MemoryContext MessageContext = NULL;
> > MemoryContext QueryContext = NULL;
> > MemoryContext CurTransactionContext = NULL;
> > I would like to manage memory used in pool_config.l.
> It seems other than TopMemoryContext, ErrorContext, and
> ProcessLoopContext, other memory contexts aren't used anywhere. I'm
> going to remove unused memory contexts if there's no objection.
> Along with the ones you mentioned QueryContext is another context used in
And it is safe to remove rest of the unused contexts.
> Tatsuo Ishii
> SRA OSS, Inc. Japan
> English: http://www.sraoss.co.jp/index_en.php
> pgpool-hackers mailing list
> pgpool-hackers at pgpool.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pgpool-hackers