pgsql: Add block_range_read_stream_cb(), to deduplicate code. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Add block_range_read_stream_cb(), to deduplicate code.
Date
Msg-id E1slXcG-000Qxa-TV@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: pgsql: Test for PG_TEST_EXTRA separately in SSL tests
Next
From: Noah Misch
Date:
Subject: pgsql: Fix stack variable scope from previous commit.