RefLib

Reference library for AI

Back

postgresql_16:9.6.30 pg_prewarm — preload relation data into buffer caches

PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > pg_prewarm — preload relation data into buffer caches

The pg_prewarm module provides a convenient way to load relation data into either the operating system buffer cache or the PostgreSQL buffer cache. Prewarming can be performed manually using the pg_prewarm function, or can be performed automatically by including pg_prewarm in (see guc-shared-preload-libraries). In the latter case, the system will run a background worker which periodically records the contents of shared buffers in a file called autoprewarm.blocks and will, using 2 background workers, reload those same blocks after a restart.

Subsections

Back