pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul Thomas <paul@tmsl.demon.co.uk>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Tore Halset <halset@pvv.ntnu.no>
Cc: pgsql-general@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] ERROR: canceling query due to user request
Date: Thu, 09 Sep 2004 12:02:14 -0400
Message-ID: <6355.1094745734@sss.pgh.pa.us> (raw)
In-Reply-To: <20040909114242.A1057@bacon>
References: <CB968022-00C1-11D9-8D0A-000A95CD827E@pvv.ntnu.no>
	<714.1094568878@sss.pgh.pa.us>
	<471AEDA2-00EA-11D9-B8FE-000A95CD827E@pvv.ntnu.no>
	<2445.1094580196@sss.pgh.pa.us>
	<AF83CF68-0165-11D9-A26A-000A95CD827E@pvv.ntnu.no>
	<19720.1094652023@sss.pgh.pa.us>
	<FBD2DEDA-022F-11D9-9D99-000A95CD827E@pvv.ntnu.no>
	<20040909095321.A789@bacon>
	<41402533.2080702@opencloud.com>
	<20040909114242.A1057@bacon>

Paul Thomas <paul@tmsl.demon.co.uk> 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



view thread (22+ messages)  latest in thread

Message-ID: <6355.1094745734@sss.pgh.pa.us>
Permalink:  ../6355.1094745734@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6355.1094745734@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, paul@tmsl.demon.co.uk, oliver@opencloud.com, halset@pvv.ntnu.no, pgsql-general@postgresql.org
  Subject: Re: [JDBC] ERROR: canceling query due to user request
  In-Reply-To: <6355.1094745734@sss.pgh.pa.us>
  References: <CB968022-00C1-11D9-8D0A-000A95CD827E@pvv.ntnu.no> <714.1094568878@sss.pgh.pa.us> <471AEDA2-00EA-11D9-B8FE-000A95CD827E@pvv.ntnu.no> <2445.1094580196@sss.pgh.pa.us> <AF83CF68-0165-11D9-A26A-000A95CD827E@pvv.ntnu.no> <19720.1094652023@sss.pgh.pa.us> <FBD2DEDA-022F-11D9-9D99-000A95CD827E@pvv.ntnu.no> <20040909095321.A789@bacon> <41402533.2080702@opencloud.com> <20040909114242.A1057@bacon> <6355.1094745734@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox