[pgpool-hackers: 570] Re: Memory contexts
ishii at postgresql.org
Fri Jul 4 19:11:42 JST 2014
Thank you for the info! I'm going to create a README file under
utils/mmgr and put the info into it.
SRA OSS, Inc. Japan
> Below is the little description of MemoryContexts used by pgpool-II
> This context resets at every main loop iteration of each process
> This context is same as PostgreSQL's TopMemoryContext and lives for a life
> time of process.
> Same as PostgreSQL's ErrorContext and used for error processing.
> Used by pgpool-II child process and, lives for single query cycle.
> Rest of the contexts are inherited from PostgreSQL code and are not used. I
> think we should remove these
> On Fri, Jul 4, 2014 at 2:57 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.
>> Tatsuo Ishii
>> SRA OSS, Inc. Japan
>> English: http://www.sraoss.co.jp/index_en.php
More information about the pgpool-hackers