public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tatsuo Ishii <[email protected]>
To: [email protected]
Subject: Re: pool_search_relcach does not consider session local cache case
Date: Wed, 25 Mar 2026 18:46:11 +0900 (JST)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
> While looking into https://github.com/pgpool/pgpool2/issues/154
> I found a bug with pool_search_relcach.
>
> pool_search_relcache does not consider the session local cache case
> such as temp table search. It creates the search result in shared
> relation cache even if the relation cache is session local. As a
> result subsequent query against the session local cache is returned
> from the shared relation cache. This could cause wrong
> result. Example:
>
> create table t1(i int);
> select * from t1; -- info "t1 is not a temp table" is registered in shared cache
> drop table t1;
> create temp table t1(i int);
> select * from t1; -- shared cache tells that t1 is not temp table and it could be load balanced,
> -- it could access non existent table from standby nodes.
>
> Fix is, to not register a temp table to shared relation cache if it's
> a session local cache.
>
> Patch attached.
Patch pushed to down to v4.4. A test is also added down to v4.5
(v4.4's test script is not suitable to apply the same patch as master
- v4.5).
Regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pool_search_relcach does not consider session local cache case
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox