Can timeout duration be set?

Started by lecabout 25 years ago3 messagesgeneral
Jump to latest
#1lec
englim@pc.jaring.my

Is it possible to set the timeout duration for a query?

Thomas.

#2Eric G. Miller
egm2@jps.net
In reply to: lec (#1)
Re: Can timeout duration be set?

On Wed, Apr 04, 2001 at 03:04:59PM +0800, lec wrote:

Is it possible to set the timeout duration for a query?

If you're using C/C++ interface, look at the asynchronous query
functions. It's a little more work, but not much. You'll have to
supply your own timing routine and/or you might provide a method for the
user to cancel the query (like with a pop-up window...).

--
Eric G. Miller <egm2@jps.net>

#3Peter Eisentraut
peter_e@gmx.net
In reply to: lec (#1)
Re: Can timeout duration be set?

lec writes:

Is it possible to set the timeout duration for a query?

No, but your client application can use a libpq API call to cancel the
query, after a timeout if you wish.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/