Add example of archive_command to use with pg_receivexlog
authorMagnus Hagander
Tue, 5 Jun 2012 11:48:18 +0000 (13:48 +0200)
committerMagnus Hagander
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  that fails
-   when the file has not been properly archived yet.
+   when the file has not been properly archived yet, for example:
+
+archive_command = 'sleep 5 && test -f /mnt/server/archivedir/%f'
+
+   The initial timeout is necessary because
+   pg_receivexlog works using asynchronous
+   replication and can therefor be slightly behind the master.