Use streaming I/O in pg_prewarm.

Thomas Munro <tmunro@postgresql.org>

Commit: 3a352df05e65de740b4a375a0ecbcae97a1f6196
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2024-04-02T11:57:34Z
Releases: 17.0
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

Files

PathChange+/−
contrib/pg_prewarm/pg_prewarm.c modified +39 −1

Discussion