Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7782012

Browse files
committed
Add example of archive_command to use with pg_receivexlog
1 parent3dd8e59 commit7782012

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎doc/src/sgml/ref/pg_receivexlog.sgml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,13 @@ PostgreSQL documentation
260260
recycle transaction log files even if the backups are not properly
261261
archived, since there is no command that fails. This can be worked
262262
around by having an <xref linkend="guc-archive-command"> that fails
263-
when the file has not been properly archived yet.
263+
when the file has not been properly archived yet, for example:
264+
<programlisting>
265+
archive_command = 'sleep 5 &amp;&amp; test -f /mnt/server/archivedir/%f'
266+
</programlisting>
267+
The initial timeout is necessary because
268+
<application>pg_receivexlog</application> works using asynchronous
269+
replication and can therefor be slightly behind the master.
264270
</para>
265271

266272
</refsect1>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp