Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 433C71337B86 for ; Mon, 11 Oct 2010 10:29:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 72176-05; Mon, 11 Oct 2010 13:29:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 4DF751337B8D; Mon, 11 Oct 2010 10:29:25 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 11 Oct 2010 08:29:24 -0500 Message-Id: <4CB2CADC020000250003676B@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 11 Oct 2010 08:29:16 -0500 From: "Kevin Grittner" To: "David Fetter" , "PG Hackers" , "PostgreSQL JDBC List" Subject: Re: [JDBC] Support for JDBC setQueryTimeout, et al. References: <20101011064615.GJ29408@fetter.org> In-Reply-To: <20101011064615.GJ29408@fetter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/687 X-Sequence-Number: 171727 David Fetter wrote: > Please find enclosed a WIP patch from one of my co-workers > intended to support JDBC's setQueryTimeout, along with the patch > for JDBC that uses it. I agree that it would be very nice to support this JDBC feature, but I'm not clear on why this can't be done with just JDBC changes using the java.util.Timer class and the existing Statement.cancel() method. Can you explain why the backend needed to be touched? -Kevin