Commit 77820120 authored by Magnus Hagander's avatar Magnus Hagander

Add example of archive_command to use with pg_receivexlog

parent 3dd8e596
...@@ -260,7 +260,13 @@ PostgreSQL documentation ...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment