Re: Reviving lost replication slots

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: sirisha chamarthi <sirichamarthi22(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Reviving lost replication slots
Date: 2022-11-09 10:37:45
Message-ID: CAA4eK1JPCNXjGPBpkETSWve-enfwo+djVQMW7CDt_63jCosyfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 4, 2022 at 1:40 PM sirisha chamarthi
<sirichamarthi22(at)gmail(dot)com> wrote:
>
Is the intent of setting restart_lsn to InvalidXLogRecPtr was to
disallow reviving the slot?
>

I think the intent is to compute the correct value for
replicationSlotMinLSN as we use restart_lsn for it and using the
invalidated slot's restart_lsn value for it doesn't make sense.

--
With Regards,
Amit Kapila.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Japin Li 2022-11-09 10:50:53 Remove redundant declaration for XidInMVCCSnapshot
Previous Message Andrew Dunstan 2022-11-09 10:35:33 Re: Small TAP improvements