Re: JDBC Statement.setQueryTimeout : is there plan to implement this? - Mailing list pgsql-sql

From Craig Ringer
Subject Re: JDBC Statement.setQueryTimeout : is there plan to implement this?
Date
Msg-id 4EE8A7B6.7090801@ringerc.id.au
Whole thread Raw
In response to JDBC Statement.setQueryTimeout : is there plan to implement this?  (Sylvain Mougenot <smougenot@sqli.com>)
List pgsql-sql
On 14/12/2011 9:29 PM, Sylvain Mougenot wrote:
> Even if the behaviour is not implemented, I guess it could be "mocked" 
> if the call to Statement.setQueryTimeout(int seconds) generated the 
> select statement "SELECT statement_timeout(SEC)".
> I know this is not ideal but could solve the problem temporarily.
> I could even be turned on by some driver settings.

Please search the mailing list archives for discussion on this topic:

http://www.postgresql.org/search/?m=1&q=setQueryTimeout+&l=&d=-1&s=d 
<http://www.postgresql.org/search/?m=1&q=setQueryTimeout+&l=&d=-1&s=d>

IIRC there are server backend changes required to make it possible to 
implement setQueryTimeout, and nobody's come up with an acceptable 
patch. I haven't followed the issue so I could easily be mistaken, though.
--
Craig Ringer


pgsql-sql by date:

Previous
From: Sylvain Mougenot
Date:
Subject: JDBC Statement.setQueryTimeout : is there plan to implement this?
Next
From: Craig Ringer
Date:
Subject: Re: JDBC Statement.setQueryTimeout : is there plan to implement this?