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

Commit 7782012

Browse files
committed
Add example of archive_command to use with pg_receivexlog
1 parent 3dd8e59 commit 7782012

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/src/sgml/ref/pg_receivexlog.sgml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,13 @@ PostgreSQL documentation
260260
recycle transaction log files even if the backups are not properly
261261
archived, since there is no command that fails. This can be worked
262262
around by having an <xref linkend="guc-archive-command"> that fails
263-
when the file has not been properly archived yet.
263+
when the file has not been properly archived yet, for example:
264+
<programlisting>
265+
archive_command = 'sleep 5 &amp;&amp; test -f /mnt/server/archivedir/%f'
266+
</programlisting>
267+
The initial timeout is necessary because
268+
<application>pg_receivexlog</application> works using asynchronous
269+
replication and can therefor be slightly behind the master.
264270
</para>
265271

266272
</refsect1>

0 commit comments

Comments
 (0)