Re: Cancelling idle in transaction state

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Cancelling idle in transaction state
Дата
Msg-id 1262275125.19367.11248.camel@ebony
обсуждение исходный текст
Ответ на Re: Cancelling idle in transaction state  (Joachim Wieland <joe@mcknight.de>)
Ответы Re: Cancelling idle in transaction state  (Kris Jurka <books@ejurka.com>)
Список pgsql-hackers
On Thu, 2009-12-31 at 15:41 +0100, Joachim Wieland wrote:

> I still think that we should have three transaction cancel modes, one
> to cancel an idle transaction, another one to cancel a running query
> and a third one that just cancels the transaction regardless of it
> being idle or not. This last one is what you are implementing now, and
> it is what HS wants to do. 

pg_cancel_backend() is currently conditional on whether a statement is
active or not, so should really be called pg_cancel_if_active(). What
people want is an unconditional way to stop a transaction. I don't see
the need for 3 modes (and that has nothing to do with HS).

-- Simon Riggs           www.2ndQuadrant.com



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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Serializable Isolation without blocking
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: PATCH: Add hstore_to_json()