Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit aa31b29

Browse files
committed
doc: add pg_prewarm example
Discussion: https://postgr.es/m/20220618085541.ezxdaljlpo6x7msc@home-desktop Author: Dong Wook Lee Backpatch-through: 11
1 parent e57519a commit aa31b29

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/src/sgml/pgprewarm.sgml

+13
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,19 @@ autoprewarm_dump_now() RETURNS int8
121121
</listitem>
122122
</varlistentry>
123123
</variablelist>
124+
<para>
125+
These parameters must be set in <filename>postgresql.conf</filename>.
126+
Typical usage might be:
127+
</para>
128+
129+
<programlisting>
130+
# postgresql.conf
131+
shared_preload_libraries = 'pg_prewarm'
132+
133+
pg_prewarm.autoprewarm = true
134+
pg_prewarm.autoprewarm_interval = 300s
135+
136+
</programlisting>
124137

125138
</sect2>
126139

0 commit comments

Comments
 (0)