回复:Queries that should be canceled will get stuck on secure_write function

Поиск
Список
Период
Сортировка
От 蔡梦娟(玊于)
Тема 回复:Queries that should be canceled will get stuck on secure_write function
Дата
Msg-id 3dcd261f-3f6e-4cb8-9734-b7d3a1ff10fd.mengjuan.cmj@alibaba-inc.com
обсуждение исходный текст
Ответ на Re: Queries that should be canceled will get stuck on secure_write function  (Andres Freund <andres@anarazel.de>)
Ответы 回复:Queries that should be canceled will get stuck on secure_write function  ("蔡梦娟(玊于)" <mengjuan.cmj@alibaba-inc.com>)
Список pgsql-hackers

I changed the implementation about this problem:
a) if the cancel query interrupt is from db for some reason, such as recovery conflict, then handle it immediately, and cancel request is treated as terminate request;
b) if the cancel query interrupt is from client, then ignore as original way

In the attached patch, I also add a tap test to generate a recovery conflict on a standby during the backend process is stuck on client write, check whether it can handle the cancel query request due to recovery conflict.

what do you think of it, hope to get your reply

Thanks & Best Regards


Вложения

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

Предыдущее
От: Ronan Dunklau
Дата:
Сообщение: Re: Proposal: More structured logging
Следующее
От: Aleksander Alekseev
Дата:
Сообщение: Re: [PATCH] Proof of concept for GUC improvements