mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 21:31:20 +02:00
Add example of archive_command to use with pg_receivexlog
This commit is contained in:
parent
3dd8e59681
commit
778201200b
@ -260,7 +260,13 @@ PostgreSQL documentation
|
|||||||
recycle transaction log files even if the backups are not properly
|
recycle transaction log files even if the backups are not properly
|
||||||
archived, since there is no command that fails. This can be worked
|
archived, since there is no command that fails. This can be worked
|
||||||
around by having an <xref linkend="guc-archive-command"> that fails
|
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 && 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>
|
</para>
|
||||||
|
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
Loading…
Reference in New Issue
Block a user