Re: timeout - Mailing list pgsql-admin

From Jeremy Buchmann
Subject Re: timeout
Date
Msg-id 200106282023.NAA22036@mail.greatbasin.net
Whole thread Raw
In response to timeout  (Jie Liang <jliang@ipinc.com>)
List pgsql-admin
> Is ther any to set a timeout when execute a sql stmt??

I believe this depends on the interface...for example, in JDBC, it
is this:

Statement s = new Statement();
s.setQueryTimeout(20);  // Sets query timeout to 20 seconds.
...

I don't know what other interfaces offer timeouts, but that's where
you should look to find out.


--Jeremy

pgsql-admin by date:

Previous
From: Jie Liang
Date:
Subject: timeout
Next
From: Chris Ruprecht
Date:
Subject: Programming PostGreSQL - making myself clearer ;-).