[pgpool-hackers: 3110] Re: Memory context for pool_create_relcache
m.usama at gmail.com
Thu Nov 8 18:42:34 JST 2018
I have been thinking about this and struggling to remember the exact
reason, I think the comment
here is misleading, As far as I can remember I originally wanted to create
the session local relcache in
the session memory context but latter during testing found some issue with
that and moved it to
I will verify the use of session memory context for the session local
relcache and take care of this.
Sorry for the inconvenience.
On Wed, Nov 7, 2018 at 7:52 AM Tatsuo Ishii <ishii at sraoss.co.jp> wrote:
> Hi Usama,
> I have noticed following code fragment in pool_create_relcache:
> * Create the relcache in session context if the cache is session
> * otherwise make home in TopMemoryContext
> old_context = MemoryContextSwitchTo(TopMemoryContext);
> Despite the comments says session context memory is used for session
> local relcache, the actual code always creates relcache in
> TopMemoryContext. Can you please elaborate why?
> Best regards,
> Tatsuo Ishii
> SRA OSS, Inc. Japan
> English: http://www.sraoss.co.jp/index_en.php
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pgpool-hackers