From: Donald Fraser <postgres@kiwi-fraser.net>
To: [JDBC] <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC gripe list
Date: Wed, 30 Mar 2011 11:06:33 +0100
Message-ID: <1C188A6309DC4931A750FBA50F8B1306@DEVELOP1> (raw)
References: <AANLkTik0kW5_jCAc7h0T_Q5cCGx=tunasHJ=nf0X=+ij@mail.gmail.com>
<AANLkTi=+JZvbmJnjjJZZGvxb4oetzwZ1KH3SHqJ-SBJm@mail.gmail.com>
<4D914191.8050103@postnewspapers.com.au>
<4D919A02.60607@gmail.com>
<4D91A252020000250003BE85@gw.wicourts.gov>
<4D91ECD5.6010109@gmail.com>
<4D91BABD020000250003BEA3@gw.wicourts.gov>
<08BC4B8C8AE843FBB51F660E2E261D6A@Demolish2>
<4D92237F020000250003BF16@gw.wicourts.gov>
----- Original Message -----
Sent: Wednesday, March 30, 2011 12:22 AM
Subject: Re: [JDBC] JDBC gripe list
> "Donald Fraser" wrote:
>
>> I already have a lot of experience with a modified PosgreSQL 7.4
>> driver and notification threads. Our company has been using it
>> since 2005.
>
> Are you talking about modifying the driver to generate and deliver
> events when there is a notification (as in PostgreSQL LISTEN/NOTIFY)
> on a connection? If so, that's an interesting feature and it would
> be interesting to see a patch.
Yes. I will work on producing a patch for review.
> It's not what we've been discussing on this thread, though,
> regarding Timer and threads. We're talking about implementing this:
>
> http://download.oracle.com/javase/6/docs/api/java/sql/Statement.html#setQueryTimeout%28int%29
>
> Have you implemented something for that? I don't think your
> concerns about timer events bunching up really applies a whole lot
> to this -- these would be one-shot timers; we're not talking about
> using an interval.
Agreed, one-shot timers would not be a problem.
Apologies, some how (probably the time of night I was reading the thread)
and all the different subjects within this topic, I miss-read the thread
with regards to Timer.
We have implemented timeouts, however it was done outside the driver and
heavily intergrated with other code and uses 1.5's concurrent thread API.
Regards
Donald
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: postgres@kiwi-fraser.net
Subject: Re: JDBC gripe list
In-Reply-To: <1C188A6309DC4931A750FBA50F8B1306@DEVELOP1>
References: <AANLkTik0kW5_jCAc7h0T_Q5cCGx=tunasHJ=nf0X=+ij@mail.gmail.com> <AANLkTi=+JZvbmJnjjJZZGvxb4oetzwZ1KH3SHqJ-SBJm@mail.gmail.com> <4D914191.8050103@postnewspapers.com.au> <4D919A02.60607@gmail.com> <4D91A252020000250003BE85@gw.wicourts.gov> <4D91ECD5.6010109@gmail.com> <4D91BABD020000250003BEA3@gw.wicourts.gov> <08BC4B8C8AE843FBB51F660E2E261D6A@Demolish2> <4D92237F020000250003BF16@gw.wicourts.gov> <1C188A6309DC4931A750FBA50F8B1306@DEVELOP1>
* 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