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

From Marco Slot
Subject Re: Disallow cancellation of waiting for synchronous replication
Date
Msg-id CANNhMLD8qhF=0pTbLrPtr=YwiTNKPuhvE8PrRkXo0eKXTzGttQ@mail.gmail.com
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  (Andrey Borodin <x4mmm@yandex-team.ru>)
List pgsql-hackers
On Fri, Dec 20, 2019 at 6:04 AM Andrey Borodin <x4mmm@yandex-team.ru> wrote:
> I think proper solution here would be to add GUC to disallow cancellation of synchronous replication. Retry step 3
willwait on locks after hanging 1 and data will be consistent. 
> Three is still a problem when backend is not canceled, but terminated [2]. Ideal solution would be to keep locks on
changeddata. Some well known databases threat termination of synchronous replication as system failure and refuse to
operateuntil standbys appear (see Maximum Protection mode). From my point of view it's enough to PANIC once so that HA
toolbe informed that something is going wrong. 

Sending a cancellation is currently the only way to resume after
disabling synchronous replication. Some HA solutions (e.g.
pg_auto_failover) rely on this behaviour. Would it be worth checking
whether synchronous replication is still required?

Marco



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Hooks for session start and end, take two
Next
From: Peter Eisentraut
Date:
Subject: Re: allow_system_table_mods and DROP RULE