Re: Improve pg_sync_replication_slots() to wait for primary to advance

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, shveta malik <shveta.malik@gmail.com>, Ajin Cherian <itsajin@gmail.com>, Yilin Zhang <jiezhilove@126.com>, Chao Li <li.evan.chao@gmail.com>, Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>, Japin Li <japinli@hotmail.com>, Ashutosh Sharma <ashu.coek88@gmail.com>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2025-12-17T17:09:25Z
Lists: pgsql-hackers
Hi,

On 2025-12-17 10:28:28 +0000, Zhijie Hou (Fujitsu) wrote:
> On Monday, December 15, 2025 7:06 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
> > 
> > On Fri, Dec 12, 2025 at 8:53 AM shveta malik <shveta.malik@gmail.com>
> > wrote:
> > >
> > > On Fri, Dec 12, 2025 at 5:35 AM Ajin Cherian <itsajin@gmail.com> wrote:
> > > >
> > > >
> > > > I have included these changes as well as comments by Chao. Attaching
> > > > v37 with the changes.
> > > >
> > >
> > > Thanks. v37 LGTM.
> > >
> > 
> > Pushed.
> 
> My college reported a related BF failure[1] to me off-list.

FWIW, this also fails semi-regularly in CI. E.g.
https://cirrus-ci.com/task/6281872222715904
https://cirrus-ci.com/task/5243530626465792

Greetings,

Andres Freund