postgresql_16:9.6.30.2 Configuration Parameters
PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > pg_prewarm — preload relation data into buffer caches > Configuration Parameters
pg_prewarm.autoprewarm (boolean)
Controls whether the server should run the autoprewarm worker. This is on by default. This parameter can only be set at server start.
pg_prewarm.autoprewarm_interval (integer)
This is the interval between updates to autoprewarm.blocks. The default is 300 seconds. If set to 0, the file will not be dumped at regular intervals, but only when the server is shut down.
These parameters must be set in postgresql.conf. Typical usage might be:
# postgresql.conf shared_preload_libraries = 'pg_prewarm' pg_prewarm.autoprewarm = true pg_prewarm.autoprewarm_interval = 300s