From: Magnus Hagander Date: Tue, 5 Jun 2012 11:48:18 +0000 (+0200) Subject: Add example of archive_command to use with pg_receivexlog X-Git-Tag: REL9_2_BETA3~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=778201200b4a5b287fe931e20ae804e8398d4872;p=postgresql Add example of archive_command to use with pg_receivexlog --- diff --git a/doc/src/sgml/ref/pg_receivexlog.sgml b/doc/src/sgml/ref/pg_receivexlog.sgml index f0a7763bdf..7ddf02fe28 100644 --- a/doc/src/sgml/ref/pg_receivexlog.sgml +++ b/doc/src/sgml/ref/pg_receivexlog.sgml @@ -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.