Dear Vitaly,
Would you have enough time to work on and fix the issue?
One idea is to compute the required LSN by the system at the slot checkpoint. This
partially follows what PG18/HEAD does but seems hacky and difficult to accept.
Best regards,
Hayato Kuroda
FUJITSU LIMITED