diff --git a/contrib/pg_prewarm/pg_prewarm.c b/contrib/pg_prewarm/pg_prewarm.c index 1f4bfb8c0d4..2b7c778df45 100644 --- a/contrib/pg_prewarm/pg_prewarm.c +++ b/contrib/pg_prewarm/pg_prewarm.c @@ -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; }