Update comment for ReplicationSlot.last_saved_restart_lsn

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 0810fbb02dbe70b8a7a7bcc51580827b8bbddbdc
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2025-07-21T12:07:54Z
Update comment for ReplicationSlot.last_saved_restart_lsn

Document that restart_lsn can go backwards and explain why this could happen.

Discussion: https://postgr.es/m/1d12d2-67235980-35-19a406a0%4063439497
Discussion: https://postgr.es/m/CAPpHfdvuyMrUg0Vs5jPfwLOo1M9B-GP5j_My9URnBX0B%3DnrHKw%40mail.gmail.com
Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Co-authored-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Vignesh C <vignesh21@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>

Files

PathChange+/−
src/include/replication/slot.h modified +19 −0

Discussion