doc: add pg_prewarm example

Discussion: https://postgr.es/m/20220618085541.ezxdaljlpo6x7msc@home-desktop

Author: Dong Wook Lee

Backpatch-through: 11
This commit is contained in:
Bruce Momjian 2022-07-08 18:36:27 -04:00
parent e57519a463
commit aa31b29375
1 changed files with 13 additions and 0 deletions

View File

@ -121,6 +121,19 @@ autoprewarm_dump_now() RETURNS int8
</listitem>
</varlistentry>
</variablelist>
<para>
These parameters must be set in <filename>postgresql.conf</filename>.
Typical usage might be:
</para>
<programlisting>
# postgresql.conf
shared_preload_libraries = 'pg_prewarm'
pg_prewarm.autoprewarm = true
pg_prewarm.autoprewarm_interval = 300s
</programlisting>
</sect2>