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 53CC552BA7 for ; Wed, 17 Aug 2005 20:45: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 50922-09 for ; Wed, 17 Aug 2005 23:45:36 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 8791D52B91 for ; Wed, 17 Aug 2005 20:45:35 -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 1E5XbG-0001su-5I; Thu, 18 Aug 2005 11:45:38 +1200 Message-ID: <4303CC21.9030700@opencloud.com> Date: Thu, 18 Aug 2005 11:45:37 +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: In-Reply-To: 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/118 X-Sequence-Number: 13687 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(). I don't know what the equivalent to sending SIGINT in the win32 world is (there's some sort of signal emulation that the windows build uses?), but it sounds like something on the server side rather than a JDBC issue. -O