From: Craig Ringer <ringerc@ringerc.id.au>
To: Radosław Smogura <rsmogura@softperience.eu>
Cc: David Fetter <david@fetter.org>
Cc: Sylvain Mougenot <smougenot@sqli.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Date: Thu, 15 Dec 2011 22:02:43 +0800
Message-ID: <4EE9FE03.7070107@ringerc.id.au> (raw)
In-Reply-To: <c138137e3524335c64e646b0e88e7dbc@mail.softperience.eu>
References: <CACKdPFjK_UsZ5wExD-RvBbvi6Zo-VYtoxQsCUpWXzTN9kywj7w@mail.gmail.com>
<4EE8AC41.2040505@ringerc.id.au>
<20111214161349.GA31176@fetter.org>
<4EE968FF.5010604@ringerc.id.au>
<4EE97B85.50909@ringerc.id.au>
<c138137e3524335c64e646b0e88e7dbc@mail.softperience.eu>
On 12/15/2011 07:29 PM, Radosław Smogura wrote:
> Long, long time ago I've sent implementation with timers, you need to
> search archive If you need this.
If it was ages ago, you probably used java.util.Timer, right?
java.util.Timer is not suitable for use in a JDBC driver because it
doesn't do any exception handling on the timer thread, it's subject to
congestion on the timer thread, and it offers no way for the driver to
control the timer thread to cleanly shut it down during unload. It's
unusable in app servers and not really a great idea anywhere that needs
to be robust and long-running.
--
Craig Ringer
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: ringerc@ringerc.id.au, rsmogura@softperience.eu, david@fetter.org, smougenot@sqli.com
Subject: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
In-Reply-To: <4EE9FE03.7070107@ringerc.id.au>
References: <CACKdPFjK_UsZ5wExD-RvBbvi6Zo-VYtoxQsCUpWXzTN9kywj7w@mail.gmail.com> <4EE8AC41.2040505@ringerc.id.au> <20111214161349.GA31176@fetter.org> <4EE968FF.5010604@ringerc.id.au> <4EE97B85.50909@ringerc.id.au> <c138137e3524335c64e646b0e88e7dbc@mail.softperience.eu> <4EE9FE03.7070107@ringerc.id.au>
* 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