From 778201200b4a5b287fe931e20ae804e8398d4872 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 5 Jun 2012 13:48:18 +0200 Subject: [PATCH] Add example of archive_command to use with pg_receivexlog --- doc/src/sgml/ref/pg_receivexlog.sgml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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. -- 2.40.0