| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера