X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C3201329D27; Thu, 9 Sep 2004 22:04:43 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93592-07; Thu, 9 Sep 2004 21:04:38 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id DF88B329CF8; Thu, 9 Sep 2004 22:04:38 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1C5W5S-00088x-00; Fri, 10 Sep 2004 09:04:10 +1200 Message-ID: <4140C546.7020801@opencloud.com> Date: Fri, 10 Sep 2004 09:04:06 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: Paul Thomas , Tore Halset , pgsql-general@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: [JDBC] ERROR: canceling query due to user request References: <714.1094568878@sss.pgh.pa.us> <471AEDA2-00EA-11D9-B8FE-000A95CD827E@pvv.ntnu.no> <2445.1094580196@sss.pgh.pa.us> <19720.1094652023@sss.pgh.pa.us> <20040909095321.A789@bacon> <41402533.2080702@opencloud.com> <20040909114242.A1057@bacon> <6355.1094745734@sss.pgh.pa.us> In-Reply-To: <6355.1094745734@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/417 X-Sequence-Number: 65623 Tom Lane wrote: > Paul Thomas writes: > >>On 09/09/2004 10:41 Oliver Jowett wrote: >> >>>JDBC gives you no way to ensure you only call cancel() on a running query >>>(there's a race between query execution returning and the call to >>>cancel()). Calling cancel() on a statement that's not currently executing >>>should do nothing; if it ends up cancelling a future query, it's a driver >>>bug. > > >>Thanks for the explaination Oliver. Maybe there is a driver bug then? > > > IIRC there was such a bug at one time, but I thought it had been fixed. > Maybe the problem is use of an old driver? My patch for this never got applied, AFAIK. The current driver still seems to send the cancellation request and continue without waiting for an EOF from the server. -O