pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Paul Thomas <paul@tmsl.demon.co.uk>
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: Fri, 10 Sep 2004 09:04:06 +1200
Message-ID: <4140C546.7020801@opencloud.com> (raw)
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>

Tom Lane wrote:
> 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?

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



view thread (22+ messages)  latest in thread

Message-ID: <4140C546.7020801@opencloud.com>
Permalink:  ../4140C546.7020801@opencloud.com/
Also on:    postgresql.org/message-id/4140C546.7020801@opencloud.com

 · 

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: oliver@opencloud.com, tgl@sss.pgh.pa.us, paul@tmsl.demon.co.uk, halset@pvv.ntnu.no, pgsql-general@postgresql.org
  Subject: Re: [JDBC] ERROR: canceling query due to user request
  In-Reply-To: <4140C546.7020801@opencloud.com>
  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> <4140C546.7020801@opencloud.com>

* 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