[pgpool-hackers: 3107] Memory context for pool_create_relcache

Tatsuo Ishii ishii at sraoss.co.jp
Wed Nov 7 11:52:03 JST 2018


Hi Usama,

I have noticed following code fragment in pool_create_relcache:

	/*
	 * Create the relcache in session context if the cache is session local,
	 * 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
Japanese:http://www.sraoss.co.jp


More information about the pgpool-hackers mailing list