[pgpool-hackers: 567] Re: Memory contexts
ishii at postgresql.org
Fri Jul 4 19:02:42 JST 2014
> 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.
SRA OSS, Inc. Japan
More information about the pgpool-hackers