Skip to content

Commit

Permalink
Increase pg_prewarm loading speed
Browse files Browse the repository at this point in the history
  • Loading branch information
csutch committed Nov 14, 2023
1 parent 2a9496d commit 24b27d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/pg_prewarm/pg_prewarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ pg_prewarm(PG_FUNCTION_ARGS)
Buffer buf;

CHECK_FOR_INTERRUPTS();
buf = ReadBufferExtended(rel, forkNumber, block, RBM_NORMAL, NULL);
//buf = ReadBufferExtended(rel, forkNumber, block, RBM_NORMAL, NULL);
buf = polar_bulk_read_buffer_extended(rel, MAIN_FORKNUM, block,
RBM_NORMAL, NULL,
64);

ReleaseBuffer(buf);
++blocks_done;
}
Expand Down

0 comments on commit 24b27d3

Please sign in to comment.