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

Commit552faef

Browse files
committed
doc: Update pg_receivexlog note
The old note about how to use pg_receivexlog as an alternative toarchive_command was obsoleted by replication slots.
1 parent0b03e59 commit552faef

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,14 @@ PostgreSQL documentation
324324

325325
<para>
326326
When using <application>pg_receivexlog</application> instead of
327-
<xref linkend="guc-archive-command">, the server will continue to
328-
recycle transaction log files even if the backups are not properly
329-
archived, since there is no command that fails. This can be worked
330-
around by having an <xref linkend="guc-archive-command"> that fails
331-
when the file has not been properly archived yet, for example:
332-
<programlisting>
333-
archive_command = 'sleep 5 &amp;&amp; test -f /mnt/server/archivedir/%f'
334-
</programlisting>
335-
The initial timeout is necessary because
336-
<application>pg_receivexlog</application> works using asynchronous
337-
replication and can therefore be slightly behind the master.
327+
<xref linkend="guc-archive-command"> as the main WAL backup method, it is
328+
strongly recommended to use replication slots. Otherwise, the server is
329+
free to recycle or remove transaction log files before they are backed up,
330+
because it does not have any information, either
331+
from <xref linkend="guc-archive-command"> or the replication slots, about
332+
how far the WAL stream has been archived. Note, however, that a
333+
replication slot will fill up the server's disk space if the receiver does
334+
not keep up with fetching the WAL data.
338335
</para>
339336

340337
</refsect1>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp