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.



Reply via email to