Re: Disallow cancellation of waiting for synchronous replication

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Disallow cancellation of waiting for synchronous replication
Дата
Msg-id 10144.1576876780@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Disallow cancellation of waiting for synchronous replication  (Andrey Borodin <x4mmm@yandex-team.ru>)
Ответы Re: Disallow cancellation of waiting for synchronous replication  (Maksim Milyutin <milyutinma@gmail.com>)
Re: Disallow cancellation of waiting for synchronous replication  (Michail Nikolaev <michail.nikolaev@gmail.com>)
Список pgsql-hackers
Andrey Borodin <x4mmm@yandex-team.ru> writes:
> I think proper solution here would be to add GUC to disallow cancellation of synchronous replication.

This sounds entirely insane to me.  There is no possibility that you
can prevent a failure from occurring at this step.

> Three is still a problem when backend is not canceled, but terminated [2].

Exactly.  If you don't have a fix that handles that case, you don't have
anything.  In fact, you've arguably made things worse, by increasing the
temptation to terminate or "kill -9" the nonresponsive session.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: range_agg
Следующее
От: Tom Lane
Дата:
Сообщение: Re: More issues with expressions always false (no patch)