[pgpool-committers: 306] pgpool: Fix on memory query cache does not work with extended query cas

Tatsuo Ishii ishii at postgresql.org
Mon Jun 4 00:53:15 JST 2012

Fix on memory query cache does not work with extended query case.
(pgbench -M extended). To do this we need followings:

Add new parameter "bool cache_commit" to ReadyForQuery(). If
cache_commit is false, ReadyForQuery() does not do any cache commit
process. This is necessary for Execute() to call ReadyForQuery() to
process sending SYNC message in replication mode case.

Fix pool_fetch_from_memory_cache() to consume SYNC message after
sending "Command Complete" message.

Fix pool_process_query() to check all cache empty after calling
ProcessFrontendResponse(). This may or may not related to this
particular on memory query cache related fix though. Anyway it seems
we need the fix.



Modified Files
pool_memqcache.c     |   19 ++++++++
pool_process_query.c |  117 ++++++++++++++++++++++++++++---------------------
pool_proto_modules.c |   24 ++++++++--
pool_proto_modules.h |    4 +-
4 files changed, 107 insertions(+), 57 deletions(-)

More information about the pgpool-committers mailing list