pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Sylvain Mougenot <smougenot@sqli.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: JDBC Statement.setQueryTimeout : is there plan to implement this?
Date: Wed, 14 Dec 2011 21:42:14 +0800
Message-ID: <4EE8A7B6.7090801@ringerc.id.au> (raw)
In-Reply-To: <CACKdPFjK_UsZ5wExD-RvBbvi6Zo-VYtoxQsCUpWXzTN9kywj7w@mail.gmail.com>
References: <CACKdPFjK_UsZ5wExD-RvBbvi6Zo-VYtoxQsCUpWXzTN9kywj7w@mail.gmail.com>

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



view thread (18+ messages)  latest in thread

Message-ID: <4EE8A7B6.7090801@ringerc.id.au>
Permalink:  ../4EE8A7B6.7090801@ringerc.id.au/
Also on:    postgresql.org/message-id/4EE8A7B6.7090801@ringerc.id.au

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ringerc@ringerc.id.au, smougenot@sqli.com
  Subject: Re: JDBC Statement.setQueryTimeout : is there plan to implement this?
  In-Reply-To: <4EE8A7B6.7090801@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