Document slot's restart_lsn can go backward

Поиск
Список
Период
Сортировка
Искать

Document slot's restart_lsn can go backward

От:
Alexander Korotkov <aekorotkov@gmail.com>
Дата:
Вложения:
Hackers,

While working on the patch fixing the situation when slot's
restart_lsn ends up pointing to a removed WAL segment [1], we
discovered that sometimes slot's restart_lsn can go backward
[2][3][4].  Hayato Kuroda proposed a patch [5], which improves
comments by describing this behavior.  As proposed by Amit Kapila [6],
I'm starting a new thread about this comments patch.

Any feedback on this patch?

Links.
1. https://www.postgresql.org/message-id/1d12d2-67235980-35-19a406a0%4063439497
2. https://www.postgresql.org/message-id/OSCPR01MB1496646E4CF72B9231DB711AFF57DA%40OSCPR01MB14966.jpnprd01.prod.outlook.com
3. https://www.postgresql.org/message-id/CALDaNm1prhebmnAY_0%3D5UJ-WodSSbj6C8X-igrGa1EamtLw5BA%40mail.gmail.com
4. https://www.postgresql.org/message-id/CALDaNm34RtDat%2BkZE_1%2BCY86pDLJM18hxNRTZx3CCGE%3DaN%3D_%3DA%40mail.gmail.com
5. https://www.postgresql.org/message-id/OSCPR01MB1496634CF3BFEC3A491CF8111F547A%40OSCPR01MB14966.jpnprd01.prod.outlook.com
6. https://www.postgresql.org/message-id/CAA4eK1%2BqYg2nwa7TVz2xN-9FDZHLUGT7NLWHtfdeaf32KN3QEQ%40mail.gmail.com

------
Regards,
Alexander Korotkov
Supabase

Re: Document slot's restart_lsn can go backward

От:
Alexander Korotkov <aekorotkov@gmail.com>
Дата:
On Fri, Jul 18, 2025 at 2:40 PM Alexander Korotkov  wrote:
> While working on the patch fixing the situation when slot's
> restart_lsn ends up pointing to a removed WAL segment [1], we
> discovered that sometimes slot's restart_lsn can go backward
> [2][3][4].  Hayato Kuroda proposed a patch [5], which improves
> comments by describing this behavior.  As proposed by Amit Kapila [6],
> I'm starting a new thread about this comments patch.
>
> Any feedback on this patch?

If nobody has additions/objections, I'll push this change.

------
Regards,
Alexander Korotkov
Supabase


Re: Document slot's restart_lsn can go backward

От:
Amit Kapila <amit.kapila16@gmail.com>
Дата:
Вложения:
On Fri, Jul 18, 2025 at 5:11 PM Alexander Korotkov  wrote:
>
> While working on the patch fixing the situation when slot's
> restart_lsn ends up pointing to a removed WAL segment [1], we
> discovered that sometimes slot's restart_lsn can go backward
> [2][3][4].  Hayato Kuroda proposed a patch [5], which improves
> comments by describing this behavior.  As proposed by Amit Kapila [6],
> I'm starting a new thread about this comments patch.
>
> Any feedback on this patch?
>

I have tried to slightly improve the comments. You can include the
suggestions, if you and/or kuroda-san thinks that the suggestions make
the patch better.

-- 
With Regards,
Amit Kapila.

Re: Document slot's restart_lsn can go backward

От:
vignesh C <vignesh21@gmail.com>
Дата:
On Mon, 21 Jul 2025 at 11:04, Amit Kapila  wrote:
>
> On Fri, Jul 18, 2025 at 5:11 PM Alexander Korotkov  wrote:
> >
> > While working on the patch fixing the situation when slot's
> > restart_lsn ends up pointing to a removed WAL segment [1], we
> > discovered that sometimes slot's restart_lsn can go backward
> > [2][3][4].  Hayato Kuroda proposed a patch [5], which improves
> > comments by describing this behavior.  As proposed by Amit Kapila [6],
> > I'm starting a new thread about this comments patch.
> >
> > Any feedback on this patch?
> >
>
> I have tried to slightly improve the comments. You can include the
> suggestions, if you and/or kuroda-san thinks that the suggestions make
> the patch better.

Your changes look good to me.

Regards,
Vignesh


Re: Document slot's restart_lsn can go backward

От:
Alexander Korotkov <aekorotkov@gmail.com>
Дата:
On Mon, Jul 21, 2025 at 11:40 AM vignesh C  wrote:
>
> On Mon, 21 Jul 2025 at 11:04, Amit Kapila  wrote:
> >
> > On Fri, Jul 18, 2025 at 5:11 PM Alexander Korotkov  wrote:
> > >
> > > While working on the patch fixing the situation when slot's
> > > restart_lsn ends up pointing to a removed WAL segment [1], we
> > > discovered that sometimes slot's restart_lsn can go backward
> > > [2][3][4].  Hayato Kuroda proposed a patch [5], which improves
> > > comments by describing this behavior.  As proposed by Amit Kapila [6],
> > > I'm starting a new thread about this comments patch.
> > >
> > > Any feedback on this patch?
> > >
> >
> > I have tried to slightly improve the comments. You can include the
> > suggestions, if you and/or kuroda-san thinks that the suggestions make
> > the patch better.
>
> Your changes look good to me.

Pushed!
Thanks to everybody involved.

------
Regards,
Alexander Korotkov
Supabase


FAQ