Add example of archive_command to use with pg_receivexlog

This commit is contained in:
Magnus Hagander 2012-06-05 13:48:18 +02:00
parent 3dd8e59681
commit 778201200b

View File

@ -260,7 +260,13 @@ PostgreSQL documentation
recycle transaction log files even if the backups are not properly recycle transaction log files even if the backups are not properly
archived, since there is no command that fails. This can be worked archived, since there is no command that fails. This can be worked
around by having an <xref linkend="guc-archive-command"> that fails around by having an <xref linkend="guc-archive-command"> that fails
when the file has not been properly archived yet. when the file has not been properly archived yet, for example:
<programlisting>
archive_command = 'sleep 5 &amp;&amp; test -f /mnt/server/archivedir/%f'
</programlisting>
The initial timeout is necessary because
<application>pg_receivexlog</application> works using asynchronous
replication and can therefor be slightly behind the master.
</para> </para>
</refsect1> </refsect1>