Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F14741337B4B for ; Tue, 12 Oct 2010 11:14:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 91445-01; Tue, 12 Oct 2010 14:14:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from fetter.org (mail.fetter.org [64.81.66.25]) by mail.postgresql.org (Postfix) with ESMTP id 91DF01335B36; Tue, 12 Oct 2010 11:14:39 -0300 (ADT) Received: by fetter.org (Postfix, from userid 500) id D0A97FBC560; Tue, 12 Oct 2010 07:14:39 -0700 (PDT) Date: Tue, 12 Oct 2010 07:14:39 -0700 From: David Fetter To: =?utf-8?B?UmFkb3PFgmF3?= Smogura Cc: Kevin Grittner , PG Hackers , PostgreSQL JDBC List Subject: Re: [JDBC] Support for JDBC setQueryTimeout, et al. Message-ID: <20101012141439.GA29627@fetter.org> References: <20101011064615.GJ29408@fetter.org> <4CB2CADC020000250003676B@gw.wicourts.gov> <88dcb3988805ede17af4a460ad251534@smogura-softworks.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <88dcb3988805ede17af4a460ad251534@smogura-softworks.eu> User-Agent: Mutt/1.5.21 (2010-09-15) 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/748 X-Sequence-Number: 171788 On Tue, Oct 12, 2010 at 04:04:56AM -0500, Radosław Smogura wrote: > On Mon, 11 Oct 2010 08:29:16 -0500, "Kevin Grittner" > wrote: > > 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 > > I sent such patch fully in Java > (http://archives.postgresql.org/pgsql-jdbc/2009-11/msg00010.php), > implementing cancellation with Timer and "cancel query" facility of > PSQL server, Would you like to update it? Is there something incomplete about the ones I sent, and if so, what? > unfortunately none has revised it, even that setQuertyTimeout todo > is for long time on dashboard, and it's important for enterprise > class software. That sounds a tad buzzword-y. What exactly is it that *you* see as important to delivering this feature? I'm thinking JDBC1 compliance, but you might have something very different in mind. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fetter@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate