Re: Disallow cancellation of waiting for synchronous replication - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Disallow cancellation of waiting for synchronous replication
Date
Msg-id 10144.1576876780@sss.pgh.pa.us
Whole thread Raw
In response to Disallow cancellation of waiting for synchronous replication  (Andrey Borodin <x4mmm@yandex-team.ru>)
Responses Re: Disallow cancellation of waiting for synchronous replication
Re: Disallow cancellation of waiting for synchronous replication
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: range_agg
Next
From: Tom Lane
Date:
Subject: Re: More issues with expressions always false (no patch)