| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add block_range_read_stream_cb(), to deduplicate code. |
| Date: | 2024-09-03 17:46:57 |
| Message-ID: | E1slXcG-000Qxa-TV@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Noah Misch | 2024-09-03 19:45:14 | pgsql: Fix stack variable scope from previous commit. |
| Previous Message | Daniel Gustafsson | 2024-09-03 17:02:16 | pgsql: Test for PG_TEST_EXTRA separately in SSL tests |