Fix yet another reset query stuck problem.
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 24 Jul 2014 06:26:55 +0000 (15:26 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 24 Jul 2014 06:26:55 +0000 (15:26 +0900)
commitcb735f22441001b6afdbb5bac72808db66094ca9
tree7cfc60e05f98315150782ba707e30ffbfe757171
parent52a3a8c6ab67be3e09db9a7bdfd8e74d81ae3687
Fix yet another reset query stuck problem.

If client_idle_limit is set and the idle limit reaches,
pool_process_query() returns and tries to execute reset query which
may not be acceptable by backend because it may not be in "ready for
query" state. The fix is, close connections to backend instead.

Per bug#107.
See also: http://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=52a3a8c6ab67be3e09db9a7bdfd8e74d81ae3687
pool_process_query.c