Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Radosław Smogura <rsmogura(at)softperience(dot)eu>
Cc: David Fetter <david(at)fetter(dot)org>, Sylvain Mougenot <smougenot(at)sqli(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Date: 2011-12-15 14:02:43
Message-ID: 4EE9FE03.7070107@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-sql

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2011-12-15 14:17:35 Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Previous Message Radosław Smogura 2011-12-15 11:29:58 Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?

Browse pgsql-sql by date

  From Date Subject
Next Message Dave Cramer 2011-12-15 14:17:35 Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Previous Message Radosław Smogura 2011-12-15 11:29:58 Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?