<div dir="ltr">Hi Ishii-San<div><br></div><div>I have been thinking about this and struggling to remember the exact reason, I think the comment</div><div>here is misleading, As far as I can remember I originally wanted to create the session local relcache in</div><div>the session memory context but latter during testing found some issue with that and moved it to</div><div>TopMemoryContext. </div><div>I will verify the use of session memory context for the session local relcache and take care of this.</div><div>Sorry for the inconvenience.</div><div><br></div><div>Kind regards</div><div>Muhammad Usama</div><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 7, 2018 at 7:52 AM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Usama,<br>
<br>
I have noticed following code fragment in pool_create_relcache:<br>
<br>
        /*<br>
         * Create the relcache in session context if the cache is session local,<br>
         * otherwise make home in TopMemoryContext<br>
         */<br>
        old_context = MemoryContextSwitchTo(TopMemoryContext);<br>
<br>
Despite the comments says session context memory is used for session<br>
local relcache, the actual code always creates relcache in<br>
TopMemoryContext. Can you please elaborate why?<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
</blockquote></div></div></div>