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

Tatsuo Ishii ishii at postgresql.org
Tue Oct 20 08:29:36 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

Also new regression test is added to check the bug.



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