X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B54959F9AFD for ; Sun, 7 May 2006 22:13:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 63300-07 for ; Sun, 7 May 2006 22:12:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id B67D19FA1B0 for ; Sun, 7 May 2006 22:12:53 -0300 (ADT) Received: from 221x253x225x162.ap221.ftth.ucom.ne.jp ([221.253.225.162] helo=[192.168.1.168]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FcuIo-0001oP-Ad; Mon, 08 May 2006 13:12:46 +1200 Message-ID: <445E9B0A.4050605@opencloud.com> Date: Mon, 08 May 2006 10:12:42 +0900 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "surabhi.ahuja" CC: pgsql-jdbc@postgresql.org Subject: Re: FW: code to cancel a running query, worker thread References: <8626C1B7EB748940BCDD7596134632BE398681@jal.iiitb.ac.in> In-Reply-To: <8626C1B7EB748940BCDD7596134632BE398681@jal.iiitb.ac.in> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/16 X-Sequence-Number: 15144 surabhi.ahuja wrote: > Is the above peice of code fine, does the problem lie in the code which > calls the executeQuery of QueryExecutor? Really, this sounds like a threading problem in your code that you need to solve yourself. If you can show a testcase showing the driver doing something wrong .. or a thread dump where a thread is stuck in the driver .. now that is more interesting. Otherwise it is just-another-threading-problem; I looked at your code briefly but it is not particularly clear what its behaviour is meant to be (i.e. it has "no obvious bugs" rather than "obviously no bugs" ;-) -O