pgsql: Use streaming I/O in pg_prewarm. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Use streaming I/O in pg_prewarm.
Date
Msg-id E1rrcnJ-0007qp-Du@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: [MASSMAIL]pgsql: Don't use the pg_am system catalog in new test
Next
From: Robert Haas
Date:
Subject: pgsql: Expose PQsocketPoll via libpq