Re: Disallow cancellation of waiting for synchronous replication

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Marco Slot <marco(at)citusdata(dot)com>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, dim(at)tapoueh(dot)org
Subject: Re: Disallow cancellation of waiting for synchronous replication
Date: 2020-06-09 18:32:51
Message-ID: 4bd1f7f109231181ba204387aa94c38916f8768f.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 2019-12-21 at 11:34 +0100, Marco Slot wrote:
> The GUCs are not re-checked in the main loop in SyncRepWaitForLSN, so
> backends will remain stuck there even if synchronous replication has
> been (temporarily) disabled while they were waiting.

If you do:

alter system set synchronous_standby_names='';
select pg_reload_conf();

it will release the backends waiting on sync rep.

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ranier Vilela 2020-06-09 18:37:57 Re: Speedup usages of pg_*toa() functions
Previous Message Alexey Kondratov 2020-06-09 18:01:13 Re: Physical replication slot advance is not persistent