@@ -282,17 +282,14 @@ PostgreSQL documentation
282
282
283
283
<para>
284
284
When using <application>pg_receivexlog</application> instead of
285
- <xref linkend="guc-archive-command">, the server will continue to
286
- recycle transaction log files even if the backups are not properly
287
- archived, since there is no command that fails. This can be worked
288
- around by having an <xref linkend="guc-archive-command"> that fails
289
- when the file has not been properly archived yet, for example:
290
- <programlisting>
291
- archive_command = 'sleep 5 && test -f /mnt/server/archivedir/%f'
292
- </programlisting>
293
- The initial timeout is necessary because
294
- <application>pg_receivexlog</application> works using asynchronous
295
- replication and can therefore be slightly behind the master.
285
+ <xref linkend="guc-archive-command"> as the main WAL backup method, it is
286
+ strongly recommended to use replication slots. Otherwise, the server is
287
+ free to recycle or remove transaction log files before they are backed up,
288
+ because it does not have any information, either
289
+ from <xref linkend="guc-archive-command"> or the replication slots, about
290
+ how far the WAL stream has been archived. Note, however, that a
291
+ replication slot will fill up the server's disk space if the receiver does
292
+ not keep up with fetching the WAL data.
296
293
</para>
297
294
298
295
</refsect1>
0 commit comments