Do not fail WAL buffers read after on-disk xlog removal

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Do not fail WAL buffers read after on-disk xlog removal
Date: 2026-10-24 17:19:42
Message-ID: CALdSSPid5M=qE9UHz5duQE_+xJF0bn1OQE4W8fxb3+BtZ0Yk7w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
0001-Do-not-reject-WAL-buffer-reads-after-segment-recycling.patch application/octet-stream 1.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2026-10-24 17:30:19 Re: Do not fail WAL buffers read after on-disk xlog removal
Previous Message David Steele 2026-10-24 17:14:08 Re: Return pg_control from pg_backup_stop().