Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8FF071337BD6 for ; Wed, 30 Mar 2011 07:06:48 -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 70361-10 for ; Wed, 30 Mar 2011 10:06:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.cisx.com (failover.mail.cisx.com [78.41.6.83]) by mail.postgresql.org (Postfix) with ESMTP id E39231337B2F for ; Wed, 30 Mar 2011 07:06:40 -0300 (ADT) Received: from DEVELOP1 ([192.168.100.50]) by mail.cisx.com (8.13.1/8.13.1) with SMTP id p2UA6X99019692 for ; Wed, 30 Mar 2011 11:06:39 +0100 Message-ID: <1C188A6309DC4931A750FBA50F8B1306@DEVELOP1> From: "Donald Fraser" To: "[JDBC]" References: <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> Subject: Re: JDBC gripe list Date: Wed, 30 Mar 2011 11:06:33 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.461 tagged_above=-10 required=5 tests=BAYES_00=-1.9, STOX_REPLY_TYPE=0.439 X-Spam-Level: X-Archive-Number: 201103/131 X-Sequence-Number: 21686 ----- 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