[pgpool-committers: 3137] pgpool: Fix extended protocol hang with empty query

Tatsuo Ishii ishii at postgresql.org
Wed Apr 13 17:06:37 JST 2016


Fix extended protocol hang with empty query

The fixes related to extended protocol cases in 3.5.1 broke the case
of empty query.  In this case backend replies with "empty query
response" which is same meaning as a command complete message. Problem
is, when empty query response is received, pgpool does not reset the
query in progress flag thus keeps on waiting for backend. However,
backend will not send the ready for query message until it receives a
sync message. Fix is, resetting the in progress flag after receiving
the empty query response and reads from frontend expecting it sends a
sync message.

Per bug 190.

Branch
------
V3_5_STABLE

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

Modified Files
--------------
src/protocol/pool_process_query.c | 11 ++++++-----
src/protocol/pool_proto_modules.c |  8 +++++++-
2 files changed, 13 insertions(+), 6 deletions(-)



More information about the pgpool-committers mailing list