pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add block_range_read_stream_cb(), to deduplicate code.
Date: Tue, 03 Sep 2024 17:46:57 +0000
Message-ID: <E1slXcG-000Qxa-TV@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1slXcG-000Qxa-TV@gemulon.postgresql.org>
Permalink:  ../E1slXcG-000Qxa-TV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1slXcG-000Qxa-TV@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add block_range_read_stream_cb(), to deduplicate code.
  In-Reply-To: <E1slXcG-000Qxa-TV@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox