pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: 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: Thu, 09 Sep 2004 21:41:07 +1200
Message-ID: <41402533.2080702@opencloud.com> (raw)
In-Reply-To: <20040909095321.A789@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>

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.

-O



view thread (22+ messages)  latest in thread

Message-ID: <41402533.2080702@opencloud.com>
Permalink:  ../41402533.2080702@opencloud.com/
Also on:    postgresql.org/message-id/41402533.2080702@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, 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: <41402533.2080702@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>

* 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