Обсуждение: Can timeout duration be set?

Поиск
Список
Период
Сортировка

Can timeout duration be set?

От
lec
Дата:
Is it possible to set the timeout duration for a query?

Thomas.


Re: Can timeout duration be set?

От
Peter Eisentraut
Дата:
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/


Re: Can timeout duration be set?

От
"Eric G. Miller"
Дата:
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>