Re: Use streaming read I/O when enabling data checksums online - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: Use streaming read I/O when enabling data checksums online
Date
Msg-id 13F428EB-3A10-4D31-AC02-C76D9F751B89@yandex-team.ru
Whole thread
In response to Use streaming read I/O when enabling data checksums online  ("cca5507" <cca5507@qq.com>)
List pgsql-hackers
Hi Nazir,

On Mon, Aug 24, 2026 at 6:13 PM Nazir Bilal Yavuz wrote:
> 2. Could this cause an error from reading a block that would not
> otherwise have been read because of the abort?

Yes.  read_stream_end() drains queued reads, so WaitReadBuffers() can
report an error from a prefetched block after the abort request.

The relation is locked against truncation and the callback is bounded by
the initial numblocks, so this can only expose an actual I/O error for a
valid relation block, not an out-of-range read.
Thank you for pointing this aspect.


Best regards, Andrey Borodin.




pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Reduce logical WAL volume with restricted replication slots
Next
From: Fujii Masao
Date:
Subject: Re: Walreceiver create temp slot more than once when timeline switch