On Tue, Sep 22, 2026 at 11:23 AM Tomas Vondra <[email protected]> wrote: > In other words, I/O and buffers may disagree - that's not a bug. Those > counters are tracking different things. > > To handle this correctly, we'd need to find a way to not issue the I/O > at all (since 862092932c9479b79732f3b441da05453ea5e06d we discard I/O > that was not initiated yet).
Isn't this what Andres' experimental "Make read_stream_reset()/end() not wait for IO" patch does? See: https://www.postgresql.org/message-id/f3xxfrkafjxpyqxywcxricxgyizjirfceychyxsgn7bwjp5eda@kwbduhy7tfmu This is one of the patches that I've been posting as part of the index prefetching patch series for some time now. -- Peter Geoghegan
