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

From Alexander Kukushkin
Subject Re: Issue with logical replication slot during switchover
Date
Msg-id CAFh8B=nM8mHpSPhVb5aGLf9nAeGWCci2Nn=QEV1+QLtUp1rX7g@mail.gmail.com
Whole thread Raw
In response to Re: Issue with logical replication slot during switchover  (Fabrice Chapuis <fabrice636861@gmail.com>)
Responses Re: Issue with logical replication slot during switchover
List pgsql-hackers


On Tue, 4 Nov 2025 at 12:15, Fabrice Chapuis <fabrice636861@gmail.com> wrote:
Hi Alexander,
I understand your use case but I think it won't work like this because of how is implemented get_local_synced_slots()
this function will return slots which synced flag to true only. 

Yeah. Sorry, my bad, you are absolutely right about get_local_synced_slots() function.
I didn't validate this part of the patch, because first I wanted to get feedback from hackers.
However, it looks like the people who build it never run Postgres in production and therefore don't understand the problem and the pain.
I will probably just add yet another workaround to Patroni and start dropping logical replication slots on standby with failover=true and synced=false.

--
Regards,
--
Alexander Kukushkin

pgsql-hackers by date:

Previous
From: "Jonathan Gonzalez V."
Date:
Subject: Re: Make PGOAUTHCAFILE in libpq-oauth work out of debug mode
Next
From: Ranier Vilela
Date:
Subject: Re: Enhance security permissions