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

From Jeff Davis
Subject Re: Disallow cancellation of waiting for synchronous replication
Date
Msg-id 4bd1f7f109231181ba204387aa94c38916f8768f.camel@j-davis.com
Whole thread Raw
In response to Re: Disallow cancellation of waiting for synchronous replication  (Marco Slot <marco@citusdata.com>)
Responses Re: Disallow cancellation of waiting for synchronous replication
List 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





pgsql-hackers by date:

Previous
From: Alexey Kondratov
Date:
Subject: Re: Physical replication slot advance is not persistent
Next
From: Ranier Vilela
Date:
Subject: Re: Speedup usages of pg_*toa() functions