From: Marko Kreen Date: Tue, 5 Nov 2013 22:37:56 +0000 (+0200) Subject: remote_wait_for_cancel: avoid unnecessary warning X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=d70368314479b8610a512628e982665ea0d44260;p=plproxy.git remote_wait_for_cancel: avoid unnecessary warning If the remote server cannot be connected and query is canceled, don't show random warning about "Unfinished connection". Patch by Fazal Majid --- diff --git a/src/execute.c b/src/execute.c index f0f1cc1..df7807d 100644 --- a/src/execute.c +++ b/src/execute.c @@ -831,7 +831,7 @@ remote_wait_for_cancel(ProxyFunction *func) if (!conn->run_tag) continue; - if (conn->cur->state != C_DONE) + if (conn->cur->state != C_DONE && conn->cur->state != C_NONE) plproxy_error(func, "Unfinished connection: %d", conn->cur->state); if (conn->res != NULL) {