Re: [BUGS] BUG #1459: Connection hangs when other connection is not - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: [BUGS] BUG #1459: Connection hangs when other connection is not
Date
Msg-id Pine.BSO.4.56.0502041638460.25642@leary.csoft.net
Whole thread Raw
In response to Re: [BUGS] BUG #1459: Connection hangs when other connection is not  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc

On Sat, 5 Feb 2005, Oliver Jowett wrote:

> - Statement.setQueryTimeout(). This is *not* implemented by the current
> driver (it is a no-op), but shouldn't be too hard to implement as
> mapping to statement_timeout if you feel inclined to do some driver hacking.
>

I think it will be complicated on the error handling/cleanup side,
especially with a multithreaded application.  You set it, you execute a
statement, and then you've got to reset it back to the default so other
threads aren't affected by it.

Kris Jurka


pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: jar naming consitency
Next
From: Chandra Mouli S
Date:
Subject: POSTGRES JBDC PROBLEM