[pgpool-committers: 1561] pgpool: Some more on integration of exception and memory manager front.
Muhammad Usama
m.usama at gmail.com
Mon Nov 25 03:17:38 JST 2013
Some more on integration of exception and memory manager front.
The current checkin includes creation of per loop iteration memory context for
worker child process, and integration of above in some parts of query processing logics.
For the query processing function all my current code browsing leads me to the
believe that although "pool_process_query()" caller has handled five possible
return values from the function i.e POOL_END, POOL_ERROR, POOL_FATAL,
POOL_IDLE and POOL_CONTINUE, but in actual the function returns only POOL_END,
POOL_ERROR and the success which is POOL_CONTINUE. and to squeeze in the managers
in query processing function I am moving forward with the above mentioned assumption.
Finally the checkin puts the wrapper on pool_read function, "pool_read_with_error()"
which throws an ereport instead of returning -ve status in case of an error.
And this wrapper will live till the time when all the callers of pool_read()
will be decorated with the exception manager.
Branch
------
EXCEPTION_MGR
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=d3704fc8443c22dd3f3550ba842918c73e42ad3b
Modified Files
--------------
src/context/pool_session_context.c | 2 +-
src/include/pool.h | 3 +-
src/include/utils/pool_stream.h | 3 +
src/protocol/child.c | 249 ++++++++++---------------
src/protocol/pool_process_query.c | 62 ++----
src/streaming_replication/pool_worker_child.c | 107 ++++++++---
src/utils/error/elog.c | 11 ++
src/utils/pool_stream.c | 11 ++
8 files changed, 221 insertions(+), 227 deletions(-)
More information about the pgpool-committers
mailing list