@@ -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 && 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