doc: add pg_prewarm example
authorBruce Momjian
Fri, 8 Jul 2022 22:36:27 +0000 (18:36 -0400)
committerBruce Momjian
Fri, 8 Jul 2022 22:36:27 +0000 (18:36 -0400)
Discussion: https://postgr.es/m/20220618085541.ezxdaljlpo6x7msc@home-desktop

Author: Dong Wook Lee

Backpatch-through: 11

doc/src/sgml/pgprewarm.sgml

index 51afc5df3f5a3c3fcf959a147dffdc5eeb70f66e..dc26d08805d3938b1c34bcda43cef23305df07fc 100644 (file)
@@ -121,6 +121,19 @@ autoprewarm_dump_now() RETURNS int8
     
    
   
+  
+   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
+
+