pgsql: Use streaming I/O in pg_prewarm.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use streaming I/O in pg_prewarm.
Date: 2024-04-02 11:59:13
Message-ID: E1rrcnJ-0007qp-Du@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2024-04-02 14:25:38 pgsql: Expose PQsocketPoll via libpq
Previous Message Alvaro Herrera 2024-04-02 11:12:47 pgsql: Don't use the pg_am system catalog in new test