]> granicus.if.org Git - postgresql/commitdiff
Add example of archive_command to use with pg_receivexlog
authorMagnus Hagander <magnus@hagander.net>
Tue, 5 Jun 2012 11:48:18 +0000 (13:48 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 5 Jun 2012 11:54:59 +0000 (13:54 +0200)
doc/src/sgml/ref/pg_receivexlog.sgml

index f0a7763bdfc488024c11b2edf031d9f1effd5ff6..7ddf02fe28d713c4cb94478e9cd5de56efa9032a 100644 (file)
@@ -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>