[pgpool-committers: 3138] 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
------
master

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

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