pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: java.sql.SQLException: ERROR: canceling query due to user
Date: Thu, 18 Aug 2005 11:49:39 +1200
Message-ID: <4303CD13.1020504@opencloud.com> (raw)
In-Reply-To: <4303CC21.9030700@opencloud.com>
References: <s3037941.000@gwmta.wicourts.gov>
	<4303CC21.9030700@opencloud.com>

Oliver Jowett wrote:
> Kevin Grittner wrote:
> 
>>The server is 8.0.3 running on Windows.  The client is using the 311 build with some patches we need (from the stable branch).  There is nothing we know of which would be canceling things on the server side, and nothing we know of which would be doing so on the JDBC client.  (In fact, when this happens during invocation of the Connection.commit method, I don't think there is a way to cancel it programatically.)
> 
> 
>>java.sql.SQLException: ERROR: canceling query due to user request
> 
> 
> On a unix system I'd say that something is sending SIGINT to the backend
> process. Certainly, the JDBC driver never sends a cancel request unless
> you explicitly call Statement.cancel(), and as you say there's no way to
> cancel a commit().

Oh -- another possibility is that you've set statement_timeout, which is
implemented in the backend as sending a query cancel after the timeout.

-O



view thread (13+ messages)  latest in thread

Message-ID: <4303CD13.1020504@opencloud.com>
Permalink:  ../4303CD13.1020504@opencloud.com/
Also on:    postgresql.org/message-id/4303CD13.1020504@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, Kevin.Grittner@wicourts.gov
  Subject: Re: java.sql.SQLException: ERROR: canceling query due to user
  In-Reply-To: <4303CD13.1020504@opencloud.com>
  References: <s3037941.000@gwmta.wicourts.gov> <4303CC21.9030700@opencloud.com> <4303CD13.1020504@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