pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: User <user2037@ymail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: setQueryTimeout
Date: Tue, 7 Jul 2009 07:52:12 -0700 (PDT)
Message-ID: <81558.48515.qm@web59810.mail.ac4.yahoo.com> (raw)


According to my tests the 8.2 driver does not actually enforce the "setQueryTimeout" value regardless of which version of Postgresql is used on the back-end.

The new "socketTimeout" connection option may be used as a kind of 'global' query time-out as it applies to all queries for the connection. However, it is based on socket time-out yet must be caught as a PSQLException or Exception.

Regardless, "setQueryTimeout" enforcement would really help with some enterprise applications which need to enforce real-time constraints.

--- On Mon, 7/6/09, Jamie D <jackelofnar@gmail.com> wrote:

> From: Jamie D <jackelofnar@gmail.com>
> Subject: [JDBC] setQueryTimeout
> To: pgsql-jdbc@postgresql.org
> Date: Monday, July 6, 2009, 12:55 AM
> Hi,
> 
> Is there any plans to implement setQueryTimeout on the 8.4
> JDBC
> driver?
> 
> Our application uses this statement and is forcing us to
> use 8.2
> driver with Postgresql 8.4.
> 
> -- 
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
> 


      




view thread (3+ messages)

Message-ID: <81558.48515.qm@web59810.mail.ac4.yahoo.com>
Permalink:  ../81558.48515.qm@web59810.mail.ac4.yahoo.com/
Also on:    postgresql.org/message-id/81558.48515.qm@web59810.mail.ac4.yahoo.com

 · 

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 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: user2037@ymail.com
  Subject: Re: setQueryTimeout
  In-Reply-To: <81558.48515.qm@web59810.mail.ac4.yahoo.com>
  References: <81558.48515.qm@web59810.mail.ac4.yahoo.com>

* 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