Add block_range_read_stream_cb(), to deduplicate code.
This replaces two functions for iterating over all blocks in a range. A
pending patch will use this instead of adding a third.
Nazir Bilal Yavuz
Discussion: https://postgr.es/m/20240820184742.f2.nmisch@google.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c582b75851c2d096ce050d753494505a957cee75
Modified Files
--------------
contrib/pg_prewarm/pg_prewarm.c | 27 ++++-----------------------
src/backend/storage/aio/read_stream.c | 17 +++++++++++++++++
src/backend/storage/buffer/bufmgr.c | 35 ++++-------------------------------
src/include/storage/read_stream.h | 10 ++++++++++
src/tools/pgindent/typedefs.list | 1 +
5 files changed, 36 insertions(+), 54 deletions(-)