Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6ADDE1337B55 for ; Mon, 11 Oct 2010 11:17:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 05806-09 for ; Mon, 11 Oct 2010 14:17:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id ABD101336473 for ; Mon, 11 Oct 2010 11:17:24 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o9BEHPt8022900; Mon, 11 Oct 2010 10:17:25 -0400 (EDT) To: "Kevin Grittner" cc: "David Fetter" , "PG Hackers" , "PostgreSQL JDBC List" Subject: Re: [JDBC] Support for JDBC setQueryTimeout, et al. In-reply-to: <4CB2CADC020000250003676B@gw.wicourts.gov> References: <20101011064615.GJ29408@fetter.org> <4CB2CADC020000250003676B@gw.wicourts.gov> Comments: In-reply-to "Kevin Grittner" message dated "Mon, 11 Oct 2010 08:29:16 -0500" Date: Mon, 11 Oct 2010 10:17:24 -0400 Message-ID: <22899.1286806644@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/691 X-Sequence-Number: 171731 "Kevin Grittner" writes: > 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? ... and, if you are seriously expecting to have that happen, why the patch was submitted to pgsql-jdbc not pgsql-hackers? I hadn't even read it because I assumed it was strictly a JDBC change. regards, tom lane