pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use streaming I/O in pg_prewarm.
Date: Tue, 02 Apr 2024 11:59:13 +0000
Message-ID: <E1rrcnJ-0007qp-Du@gemulon.postgresql.org> (raw)

Use streaming I/O in pg_prewarm.

Instead of calling ReadBuffer() repeatedly, use the new streaming
interface.  This commit provides a very simple example of such a
transformation.

Discussion: https://postgr.es/m/CA+hUKGJkOiOCa+mag4BF+zHo7qo=o9CFheB8=g6uT5TUm2gkvA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3a352df05e65de740b4a375a0ecbcae97a1f6196

Modified Files
--------------
contrib/pg_prewarm/pg_prewarm.c | 40 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 39 insertions(+), 1 deletion(-)



Message-ID: <E1rrcnJ-0007qp-Du@gemulon.postgresql.org>
Permalink:  ../E1rrcnJ-0007qp-Du@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rrcnJ-0007qp-Du@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: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use streaming I/O in pg_prewarm.
  In-Reply-To: <E1rrcnJ-0007qp-Du@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