Add block_range_read_stream_cb(), to deduplicate code.
authorNoah Misch <noah@leadboat.com>
Tue, 3 Sep 2024 17:46:20 +0000 (10:46 -0700)
committerNoah Misch <noah@leadboat.com>
Tue, 3 Sep 2024 17:46:20 +0000 (10:46 -0700)
commitc582b75851c2d096ce050d753494505a957cee75
treecd3adc8d64d2bc66aa73dfd98e73c678bf41b3a4
parentba7625a7a51b58c712541d7c0d6667c1f860e33f
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
contrib/pg_prewarm/pg_prewarm.c
src/backend/storage/aio/read_stream.c
src/backend/storage/buffer/bufmgr.c
src/include/storage/read_stream.h
src/tools/pgindent/typedefs.list