From: David Fetter <david@fetter.org>
To: Radosław Smogura <rsmogura@softperience.eu>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: PG Hackers <pgsql-hackers@postgresql.org>
Cc: PostgreSQL JDBC List <pgsql-jdbc@postgresql.org>
Subject: Re: [JDBC] Support for JDBC setQueryTimeout, et al.
Date: Tue, 12 Oct 2010 07:14:39 -0700
Message-ID: <20101012141439.GA29627@fetter.org> (raw)
In-Reply-To: <88dcb3988805ede17af4a460ad251534@smogura-softworks.eu>
References: <20101011064615.GJ29408@fetter.org>
<4CB2CADC020000250003676B@gw.wicourts.gov>
<88dcb3988805ede17af4a460ad251534@smogura-softworks.eu>
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"
> <Kevin.Grittner@wicourts.gov> wrote:
> > David Fetter <david@fetter.org> 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 <david@fetter.org> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: david@fetter.org, rsmogura@softperience.eu, Kevin.Grittner@wicourts.gov, pgsql-hackers@postgresql.org
Subject: Re: [JDBC] Support for JDBC setQueryTimeout, et al.
In-Reply-To: <20101012141439.GA29627@fetter.org>
References: <20101011064615.GJ29408@fetter.org> <4CB2CADC020000250003676B@gw.wicourts.gov> <88dcb3988805ede17af4a460ad251534@smogura-softworks.eu> <20101012141439.GA29627@fetter.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox