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 5D82152ACB for ; Fri, 19 Aug 2005 11:54:59 -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 20570-07 for ; Fri, 19 Aug 2005 14:54:55 +0000 (GMT) Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id BE2DE5299E for ; Fri, 19 Aug 2005 11:54:53 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Fri, 19 Aug 2005 09:54:57 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Fri, 19 Aug 2005 09:54:44 -0500 From: "Kevin Grittner" To: Cc: , 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.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/138 X-Sequence-Number: 13707 Thanks, Tom. =20 "SHOW statement_timeout" from the JDBC connection returns zero. =20 I'm curious whether "SET statement_timeout=3Dn" sets this for a connection.= If so, wouldn't it be a good thing to update the JDBC setQueryTimeout = and getQueryTimeout methods to use these SET and SHOW statements? =20 -Kevin =20 =20 >>> Tom Lane 08/18/05 5:50 PM >>> "Kevin Grittner" writes: > 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 The fact that it's commented out doesn't mean that it's not been set from elsewhere, such as a per-user default, or even a prior state of the config file. It'd be more trustworthy to connect to the server as the same user your JDBC client runs as, and do "SHOW statement_timeout". regards, tom lane