X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AD653D6E69 for ; Tue, 13 Sep 2005 17:34:07 -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 70921-03 for ; Tue, 13 Sep 2005 20:34:02 +0000 (GMT) Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id 79A82D8D53 for ; Tue, 13 Sep 2005 17:34:02 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Tue, 13 Sep 2005 15:34:04 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Tue, 13 Sep 2005 15:33:59 -0500 From: "Kevin Grittner" To: Subject: Re: java.sql.SQLException: ERROR: canceling query due Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 required=5 tests=[AWL=0.004] X-Spam-Level: X-Archive-Number: 200509/42 X-Sequence-Number: 13827 For the benefit of anyone with similar problems who finds this thread, I'm posting resolution info. The problem was that Statement.cancel was being invoked at the end of an empty ResultSet, and that a race condition on the server can cause a subsequent commit to return this error -- if the commit occurs very soon after the Statement.cancel. =20 See the admin list for more info. =20 -Kevin =20 =20 >>> "Kevin Grittner" 08/18/05 5:40 PM >>> Thanks much for the clarification. The statement_timeout setting is = commented out, with a note that it defaults to zero and that this means it = is disabled. =20 I'm moving this discussion to the admin group. The failure occurs with = the PostgreSQL server running on Windows Advanced Server 2003, while the = same software and configuration works fine with the server on Windows = 2000. If nobody can suggest a configuration change to Windows to fix this = I guess I'll report it as a bug on Windows 2003 and try to convince = management here to use a different platform. (I've been pushing Linux, = but the DBA manager doesn't want to change both OS and DBMS at the same = time.) =20 -Kevin =20 =20 >>> Oliver Jowett 08/18/05 4:56 PM >>> Kevin Grittner wrote: > I searched to ensure that nothing was invoking the Statement.setQueryTime= out method. setQueryTimeout() is a no-op anyway in current drivers. I was talking about the server's statement_timeout setting (set in postgresql.conf or via SET or on a per-user/db basis). > Hypothetically, would such a bug most likely be strictly server-side (in = which case this is the wrong forum to pursue it) Yes.