提交 77820120 编写于 作者: M Magnus Hagander

Add example of archive_command to use with pg_receivexlog

上级 3dd8e596
......@@ -260,7 +260,13 @@ PostgreSQL documentation
recycle transaction log files even if the backups are not properly
archived, since there is no command that fails. This can be worked
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>
</refsect1>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册