Re: Proposed change to make cancellations safe

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposed change to make cancellations safe
Дата
Msg-id 6530.1461602065@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Proposed change to make cancellations safe  (Shay Rojansky <roji@roji.org>)
Ответы Re: Proposed change to make cancellations safe  (Shay Rojansky <roji@roji.org>)
Список pgsql-hackers
Shay Rojansky <roji@roji.org> writes:
>> Issuing bulk cancellations sounds like a bad plan.

> I'm not sure why, but at the very least it's a useful thing to have when
> batching several statements together and then wanting to cancel them all.

We really do need "cancel up to" semantics for reliable behavior.
Consider the case where the client has sent the query (or thinks it has)
but the server hasn't received it yet.  If the cancel request can arrive
at the server before the query fully arrives, and we don't have "cancel
all messages up through N" semantics, the cancel will not do what the
client expects it to.
        regards, tom lane



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

Предыдущее
От: Shay Rojansky
Дата:
Сообщение: Re: Proposed change to make cancellations safe
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions