[pgpool-committers: 2747] pgpool: Fix in memory query cache bug reported in bug#152.

Tatsuo Ishii ishii at postgresql.org
Mon Oct 19 13:21:17 JST 2015


Fix in memory query cache bug reported in bug#152.

If extended query protocol is used and a bind/execute message arrives
which uses a statement created by prior parse message, the temp_cache
is not initialized by a parse messages. Thus messages are added to pre
existing temp cache buffer which causes the trouble (when the cached
result returns, Data Row message and Command Complete message appeared
*twice*).

Also new regression test is added to check the bug.

Branch
------
V3_4_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=c0ed0aac08631786116169c4ffac7fe19f3667b0

Modified Files
--------------
src/query_cache/pool_memqcache.c               |   18 ++++++++++
src/test/regression/tests/065.bug152/Main.java |   32 +++++++++++++++++
src/test/regression/tests/065.bug152/run.sh    |    5 +++
src/test/regression/tests/065.bug152/test.sh   |   46 ++++++++++++++++++++++++
4 files changed, 101 insertions(+)



More information about the pgpool-committers mailing list