Hi,
XLogSendPhysical checks for on-disk xlog removal even when the entire requested
range was copied from WAL buffers. So this rejects data already available in the
output buffer and terminates streaming unnecessarily.
Attached checks for xlog files presence only in WAL buffers read failed.
--
Best regards,
Kirill Reshke