Use streaming I/O in pg_prewarm.
authorThomas Munro <tmunro@postgresql.org>
Tue, 2 Apr 2024 11:57:17 +0000 (00:57 +1300)
committerThomas Munro <tmunro@postgresql.org>
Tue, 2 Apr 2024 11:57:34 +0000 (00:57 +1300)
commit3a352df05e65de740b4a375a0ecbcae97a1f6196
treefd5f58926249c42b8d4b8a114560bffa40c492d5
parentb5a9b18cd0bc6f0124664999b31a00a264d16913
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
contrib/pg_prewarm/pg_prewarm.c