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 7A290329C70 for ; Thu, 9 Sep 2004 17:02:22 +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 93128-01 for ; Thu, 9 Sep 2004 16:02:17 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id D1CF5329C67 for ; Thu, 9 Sep 2004 17:02:16 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i89G2Fq6006356; Thu, 9 Sep 2004 12:02:15 -0400 (EDT) To: Paul Thomas Cc: Oliver Jowett , Tore Halset , pgsql-general@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: [JDBC] ERROR: canceling query due to user request In-reply-to: <20040909114242.A1057@bacon> 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> Comments: In-reply-to Paul Thomas message dated "Thu, 09 Sep 2004 11:42:42 +0100" Date: Thu, 09 Sep 2004 12:02:14 -0400 Message-ID: <6355.1094745734@sss.pgh.pa.us> From: Tom Lane 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/398 X-Sequence-Number: 65604 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? regards, tom lane