From: Marko Kreen Date: Mon, 15 Apr 2013 11:45:49 +0000 (+0300) Subject: remote_wait_for_cancel: wait only C_QUERY_READ connections. X-Git-Url: http://git.postgresql.org/gitweb/edit?a=commitdiff_plain;h=0b2009bcce932bb5ff57e0dbe50ac8ebb6d454c9;p=plproxy.git remote_wait_for_cancel: wait only C_QUERY_READ connections. Previous check was too broad and left plproxy hanging. Reported-By: Tarvi Pillessaar --- diff --git a/src/execute.c b/src/execute.c index bfd4b0f..00d5c91 100644 --- a/src/execute.c +++ b/src/execute.c @@ -816,7 +816,7 @@ remote_wait_for_cancel(ProxyFunction *func) if (!conn->run_tag) continue; - if (conn->cur->state != C_DONE) + if (conn->cur->state == C_QUERY_READ) pending++; check_timeouts(func, cluster, conn, now.tv_sec); }