X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 71DDE52802 for ; Wed, 17 Aug 2005 20:49:40 -0300 (ADT) 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 75430-09 for ; Wed, 17 Aug 2005 23:49:37 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id B37E65299C for ; Wed, 17 Aug 2005 20:49:36 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E5Xf9-0001xa-RK; Thu, 18 Aug 2005 11:49:39 +1200 Message-ID: <4303CD13.1020504@opencloud.com> Date: Thu, 18 Aug 2005 11:49:39 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Grittner Cc: pgsql-jdbc@postgresql.org Subject: Re: java.sql.SQLException: ERROR: canceling query due to user References: <4303CC21.9030700@opencloud.com> In-Reply-To: <4303CC21.9030700@opencloud.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 required=5 tests=[AWL=0.009] X-Spam-Level: X-Archive-Number: 200508/119 X-Sequence-Number: 13688 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