[pgpool-committers: 2749] 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.
t-ishii at localhost:

Branch
------
V3_3_STABLE

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

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



More information about the pgpool-committers mailing list