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 24, 2023
1 parent a26fc13 commit f7badd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/pg_prewarm/pg_prewarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ 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 f7badd7

Please sign in to comment.