Re: Plans for 8.2?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Plans for 8.2?
Дата
Msg-id 20060113215947.GA19342@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Plans for 8.2?  ("Jim C. Nasby" <jnasby@pervasive.com>)
Ответы Re: Plans for 8.2?
Список pgsql-general
On Fri, Jan 13, 2006 at 03:40:48PM -0600, Jim C. Nasby wrote:
> It strikes me that if we had a way to abort a statement on another
> backend, you could abort anything that's been waiting more than x
> seconds for a lock via an external process watching pg_locks. Of course,
> that would be much more cumbersom than SET LOCK MODE TO WAIT n...

There's pg_cancel_backend(), but a mechanism like you describe seems
subject to race conditions: by the time you decide to cancel a query
and send the signal, the offending query might have completed and
you end up cancelling some subsequent query that just started.

--
Michael Fuhr

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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Plans for 8.2?
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Plans for 8.2?