[pgpool-committers: 543] pgpool: Fix to use memory cache of extended queries in a transaction, t

Nozomi Anzai anzai at sraoss.co.jp
Fri Jul 27 13:07:35 JST 2012


Fix to use memory cache of extended queries in a transaction, too.

When a transaction is comitted, query_context->temp_cache->query is used
to create md5 hash to search for query cache.
So overwrite the query text in temp cache to the one with the hex of bind message.
If not, md5 hash will be created by the query text without bind message, and
it will happen to find cache never or to get a wrong result.

Branch
------
master

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

Modified Files
--------------
pool_proto_modules.c |   18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)



More information about the pgpool-committers mailing list