pg_prewarm
F.26. pg_prewarm
The pg_prewarm
module provides a convenient way to load relation data into either the operating system buffer cache or the PostgreSQL buffer cache.
F.26.1. Functions
pg_prewarm(regclass, mode text default 'buffer', fork text default 'main', first_block int8 default null, last_block int8 default null) RETURNS int8
The first argument is the relation to be prewarmed. The second argument is the prewarming method to be used, as further discussed below; the third is the relation fork to be prewarmed, usually main
. The fourth argument is the first block number to prewarm (NULL
is accepted as a synonym for zero). The fifth argument is the last block number to prewarm (登录查看完整内容