Thread

  1. Re: Fix the race condition for updating slot minimum LSN

    solai v <solai.cdac@gmail.com> — 2026-05-15T04:43:25Z

    Hi Hou zj,
    I tested the patch on a local debug build.The patch applied cleanly
    and postgreSQL built successfully without issues.
    I tested logical slot creation,WAL switching,slot advancement,and
    checkpoints after applying the patch,and everything worked as expected
    without crashes or assertion failures.
    I also reviewed the changes in slot.c and slotsync.c .The locking
    approach around restart_lsn updates and minimum LSN computation looks
    reasonable to me and seems consistent with the existing xmin
    synchronization logic.
    Surya's explanation regarding copy_replication_slot() also makes sense
    to me after reviewing that patch.
    
    Regards,
    Solai