summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorMagnus Hagander2012-06-05 11:48:18 +0000
committerMagnus Hagander2012-06-05 11:54:59 +0000
commit778201200b4a5b287fe931e20ae804e8398d4872 (patch)
treedea4cb606d3fbaa645b3cb0d1c73d39fb0e07128 /doc/src
parent3dd8e596812e3adb72aecafb23fbb6a30836c475 (diff)
Add example of archive_command to use with pg_receivexlog
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/pg_receivexlog.sgml8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/pg_receivexlog.sgml b/doc/src/sgml/ref/pg_receivexlog.sgml
index f0a7763bdfc..7ddf02fe28d 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 <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>