Re: Regardign RecentFlushPtr in WalSndWaitForWal() - Mailing list pgsql-hackers

From shveta malik
Subject Re: Regardign RecentFlushPtr in WalSndWaitForWal()
Date
Msg-id CAJpy0uAx_dw6m1-yCtumgZ7jD3t4EP3V0QnDwhg4G3h6yAi8hA@mail.gmail.com
Whole thread Raw
In response to Re: Regardign RecentFlushPtr in WalSndWaitForWal()  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Regardign RecentFlushPtr in WalSndWaitForWal()
List pgsql-hackers
On Sat, Mar 2, 2024 at 4:44 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
>
> Right, I think the quoted code has check "if (!RecoveryInProgress())".
>
> >
>  But apart from that, your
> > observation seems accurate, yes.
> >
>
> I also find the observation correct and the code has been like that
> since commit 5a991ef8 [1]. So, let's wait to see if Robert or Andres
> remembers the reason, otherwise, we should probably nuke this code.

Please find the patch attached for the same.

thanks
Shveta

Attachment

pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed
Next
From: shveta malik
Date:
Subject: Re: Add comment to specify timeout unit in ConditionVariableTimedSleep()