Skip to content

Commit 8c1b6a1

Browse files
committed
doc: Mention archive_command failure handling on signals
The behavior is similar to restore_command, which was already documented for the restore part, but not the archive part. Author: Benoit Lobréau Reviewed-by: Julien Rouhaud Discussion: https://postgr.es/m/CAPE8EZ7akCzc1hWohA4AcbmKtHh9rcWAB5MStOeZD2+9jC+hLQ@mail.gmail.com
1 parent ffd3944 commit 8c1b6a1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/src/sgml/backup.sgml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,15 @@ test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_wal/0
639639
it will try again periodically until it succeeds.
640640
</para>
641641

642+
<para>
643+
When the archive command is terminated by a signal (other than
644+
<systemitem>SIGTERM</systemitem> that is used as part of a server
645+
shutdown) or an error by the shell with an exit status greater than
646+
125 (such as command not found), the archiver process aborts and gets
647+
restarted by the postmaster. In such cases, the failure is
648+
not reported in <xref linkend="pg-stat-archiver-view"/>.
649+
</para>
650+
642651
<para>
643652
The archive command should generally be designed to refuse to overwrite
644653
any pre-existing archive file. This is an important safety feature to

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy