From: Gunnar \"Nick\" Bluth <gunnar.bluth.extern@elster.de>
To: pgsql-docs@postgresql.org
Cc: Gunnar Nick Bluth <gunnar.bluth@pro-open.de>
Subject: Re: Missing important information in backup.sgml
Date: Wed, 16 Nov 2016 13:57:13 +0100
Message-ID: <cec57bd3-3742-9bae-a76f-f3414dcf135e@elster.de> (raw)
In-Reply-To: <cb648ec1-5212-60c5-b73a-9572d21b2ae9@elster.de>
References: <cb648ec1-5212-60c5-b73a-9572d21b2ae9@elster.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
Am 16.11.2016 um 11:37 schrieb Gunnar "Nick" Bluth:
> Hi,
>
> I ran into this issue (see patch) a few times over the past years, and
> tend to forget it again (sigh!). Today I had to clean up a few hundred
> GB of unarchived WALs, so I decided to write a patch for the
> documentation this time.
Uhm, well, the actual problem was a stale replication slot... and
tomatoes on my eyes, it seems ;-/. Ashes etc.!
However, I still think a warning on (esp. rsync's) RCs >= 128 is worth
considering (see -v2 attached).
Cheers,
--
Gunnar "Nick" Bluth
DBA ELSTER
Tel: +49 911/991-4665
Mobil: +49 172/8853339
Attachments:archiving-doc-exit-status-v2.patch (text/x-patch, 946B) downloaddiff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgmlindex 6eaed1e..183fd37 100644--- a/doc/src/sgml/backup.sgml+++ b/doc/src/sgml/backup.sgml@@ -636,7 +636,11 @@ test ! -f /mnt/server/archivedir/00000001000000A900000065 && cp pg_wal/0
<productname>PostgreSQL</> will assume that the file has been
successfully archived, and will remove or recycle it. However, a nonzero
status tells <productname>PostgreSQL</> that the file was not archived;
- it will try again periodically until it succeeds.+ it will try again periodically until it succeeds. Note that an exit+ status of 128 or higher will cause the archiver to exit, resulting in a + potentially misleading FATAL error in the server log. E.g., <command>rsync</>+ tends to return an exit status of 255 when it is unable to resolve a + hostname, which will cause the archiver process to exit (and restart).
</para>
<para>
signature.asc (application/pgp-signature, 835B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-docs@postgresql.org
Cc: gunnar.bluth.extern@elster.de, gunnar.bluth@pro-open.de
Subject: Re: Missing important information in backup.sgml
In-Reply-To: <cec57bd3-3742-9bae-a76f-f3414dcf135e@elster.de>
References: <cb648ec1-5212-60c5-b73a-9572d21b2ae9@elster.de> <cec57bd3-3742-9bae-a76f-f3414dcf135e@elster.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox