Re: Issue with logical replication slot during switchover - Mailing list pgsql-hackers

From shveta malik
Subject Re: Issue with logical replication slot during switchover
Date
Msg-id CAJpy0uBrEFeHz5VmOez17fSg0hHf7czcnUGcNJ7gZoz_+cfW0w@mail.gmail.com
Whole thread Raw
In response to Re: Issue with logical replication slot during switchover  (Alexander Kukushkin <cyberdemn@gmail.com>)
Responses Re: Issue with logical replication slot during switchover
List pgsql-hackers
On Tue, Oct 28, 2025 at 6:33 PM Alexander Kukushkin <cyberdemn@gmail.com> wrote:
>
> Hi all,
>
> I don't think we really need to have allow_overwrite.
> It is not possible to create logical slots on standby with failover=true, therefore we can safely rely on failover
beingtrue to understand that at some point this node was a primary and that this slot is supposed to be synced. 
> Please see the patch attached.
>

We had discussed this point in another thread, please see [1]. After
discussion it was decided to not go this way.

[1]:
https://www.postgresql.org/message-id/OS0PR01MB57161FF469DE049765DD53A89475A%40OS0PR01MB5716.jpnprd01.prod.outlook.com

thanks
Shveta



pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: Consistently use the XLogRecPtrIsInvalid() macro
Next
From: Amit Kapila
Date:
Subject: Re: Logical Replication of sequences