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 77252329EB1; Thu, 9 Sep 2004 11:43:53 +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 70569-08; Thu, 9 Sep 2004 10:43:49 +0000 (GMT) Received: from curry.tmsl.demon.co.uk (tmsl-adsl.demon.co.uk [80.177.114.181]) by svr1.postgresql.org (Postfix) with ESMTP id B5248329EAF; Thu, 9 Sep 2004 11:43:49 +0100 (BST) Received: from bacon.tmsl.demon.co.uk (bacon.tmsl.demon.co.uk [192.168.7.102]) by curry.tmsl.demon.co.uk (8.11.6/8.11.6) with ESMTP id i89Agl806951; Thu, 9 Sep 2004 11:42:47 +0100 Date: Thu, 9 Sep 2004 11:42:42 +0100 From: Paul Thomas To: Oliver Jowett Cc: Tore Halset , pgsql-general@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: [JDBC] ERROR: canceling query due to user request Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <41402533.2080702@opencloud.com>; from oliver@opencloud.com on Thu, Sep 09, 2004 at 10:41:07 +0100 X-Mailer: Balsa 1.2.3 Lines: 21 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/381 X-Sequence-Number: 65587 On 09/09/2004 10:41 Oliver Jowett wrote: > Paul Thomas wrote: > >> Given that statement.cancel() should only be used to cancel a running >> query, I think the problem is more in your framework's misuse of >> cancel() rather than in the driver itself. > > 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? -- Paul Thomas +------------------------------+-------------------------------------------+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +------------------------------+-------------------------------------------+