[pgpool-committers: 2342] pgpool: Fixing [pgpool-general: 3325] Master/Slave (stream) mode - Memo

Muhammad Usama m.usama at gmail.com
Thu Dec 4 21:27:55 JST 2014


Fixing [pgpool-general: 3325] Master/Slave (stream) mode - Memory depletion

This memory leak is fixed by adding a new MemoryContext (ProcessQueryContext)
in pool_process_query function that gets reset at every query processing
loop iteration, Some required adjustments are made as part of this new
MemoryContext arrangement and now POOL_QUERY_CONTEXT has its own MemoryContext
which holds the QueryContext and its associated data.

Branch
------
V3_4_STABLE

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

Modified Files
--------------
src/context/pool_query_context.c         |   13 +++++++++++--
src/context/pool_session_context.c       |    2 +-
src/include/context/pool_query_context.h |    1 +
src/protocol/pool_process_query.c        |   11 ++++++++++-
src/protocol/pool_proto_modules.c        |   20 +++++++++++++-------
src/query_cache/pool_memqcache.c         |   14 ++++++++++----
6 files changed, 46 insertions(+), 15 deletions(-)



More information about the pgpool-committers mailing list