Cancel query based on a timeout

Поиск
Список
Период
Сортировка
От Stijn Vanroye
Тема Cancel query based on a timeout
Дата
Msg-id 71E201BE5E881C46811BA160694C5FCB046733@fs1000.farcourier.com
обсуждение исходный текст
Ответы Re: Cancel query based on a timeout  (Shridhar Daithankar <shridhar@frodo.hserus.net>)
Re: Cancel query based on a timeout  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Cancel query based on a timeout  ("Carl E. McMillin" <carlymac@earthlink.net>)
Список pgsql-general
Hi List,

I'm running a query on a not-so-small db. Mostly this query runs fast enough, but every once in a while the query takes
along time to complete in wich case the users start banging away on the keyboard :-).  

What we would like to do is cancel the query after a certain time-out (e.g. 30 sec.)
Is there some way to send a command to the postgres sever to stop running the query?

We're using Postgres 7.3.4 and the latest ODBC driver. Programming is done with Borland Delphi 7


Regards,

Stijn Vanroye

В списке pgsql-general по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: alter owner on schema?
Следующее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: passing strings to functions