Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6zmP-0001Al-Gc for pgsql-docs@arkaria.postgresql.org; Wed, 16 Nov 2016 12:57:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c6zmP-0002Tx-3Q for pgsql-docs@arkaria.postgresql.org; Wed, 16 Nov 2016 12:57:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c6zmN-0002T9-TM for pgsql-docs@postgresql.org; Wed, 16 Nov 2016 12:57:32 +0000 Received: from edmmai02.een.elster.de ([217.237.175.35]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84_2) (envelope-from ) id 1c6zmH-0001wU-JV for pgsql-docs@postgresql.org; Wed, 16 Nov 2016 12:57:30 +0000 X-IronPort-AV: E=Sophos;i="5.31,500,1473112800"; d="asc'?scan'208";a="4058796" Received: from webmail.een.elster.de (HELO edmzarafa01.een.elster.de) ([10.1.20.13]) by edmmai02.een.elster.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Nov 2016 13:57:20 +0100 Received: from [10.200.128.41] (enmfwa02ext.een.elster.de [192.168.90.2]) by edmzarafa01.een.elster.de (Postfix) with ESMTPSA id 0134F2D6029B; Wed, 16 Nov 2016 13:57:19 +0100 (CET) Subject: Re: Missing important information in backup.sgml Reply-To: Gunnar Nick Bluth References: To: pgsql-docs@postgresql.org Cc: Gunnar Nick Bluth From: "Gunnar \"Nick\" Bluth" X-Enigmail-Draft-Status: N1110 Message-ID: Date: Wed, 16 Nov 2016 13:57:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ww3S8LkFlGIvKkdQJ8rd7Evcs5vREGWDl" X-Pg-Spam-Score: -7.1 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ww3S8LkFlGIvKkdQJ8rd7Evcs5vREGWDl Content-Type: multipart/mixed; boundary="------------DB7D08A3F99843491ACA396D" This is a multi-part message in MIME format. --------------DB7D08A3F99843491ACA396D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am 16.11.2016 um 11:37 schrieb Gunnar "Nick" Bluth: > Hi, >=20 > 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 >=3D 128 is worth considering (see -v2 attached). Cheers, --=20 Gunnar "Nick" Bluth DBA ELSTER Tel: +49 911/991-4665 Mobil: +49 172/8853339 --------------DB7D08A3F99843491ACA396D Content-Type: text/x-patch; name="archiving-doc-exit-status-v2.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="archiving-doc-exit-status-v2.patch" diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml index 6eaed1e..183fd37 100644 --- a/doc/src/sgml/backup.sgml +++ b/doc/src/sgml/backup.sgml @@ -636,7 +636,11 @@ test ! -f /mnt/server/archivedir/00000001000000A9000= 00065 && cp pg_wal/0 PostgreSQL will assume that the file has been successfully archived, and will remove or recycle it. However, a no= nzero status tells PostgreSQL that the file was not archiv= ed; - 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 i= n a=20 + potentially misleading FATAL error in the server log. E.g., rsync + tends to return an exit status of 255 when it is unable to resolve a= =20 + hostname, which will cause the archiver process to exit (and restart= ). =20 --------------DB7D08A3F99843491ACA396D-- --ww3S8LkFlGIvKkdQJ8rd7Evcs5vREGWDl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJYLFepAAoJEDh0MJ2tR5CnTcoP/AjuAP6r/7W5iEjQjOKkTo/W DuzK233508ynh4A0/nw2rpz/nMj42mj6iECNaaPEEI3sRhic/Fj1/UNnXQybu5DH WXqZLJfMEqC01r70T5asEGqll220zHk+Airf5mJZS/kixex44ctumok306uIkH2x g7hDlorNjjW0wyTnoQKT9cKszzcQHhUpeXfX6bEZ/7hl2PCPqfRSIiHRs6VpHa+8 YkjfK1a1Rs6+4FdejfnQtKGD1hXzmpp0fiLdrG617j9Dk0MxUzgG9yOT3h+ZqmY1 xk/09cLYV5Pf8zocwO2o6JFu3hgb4Q5lkSVxY4vMYCvCYXiAHhgjQVkCjL4NDhew KZbveSQtNab1qpgKX6E0uvvV6lT93bq9emry3sFl+/ShSrI4c71rMpISSU/XSXnw ZuKfvifh5nfJwyKKcVr5YNQ+COkQCMToCoJtFWHsfEAj167llr8hEOCyZuhl1QZ2 9+FH4Jfb0hTX1b1M9BxaX/OiBuCWWTH6z8x1viZCB4Z7pryQvSZv0TluYskATvcZ y2iRs78AcDV3gDHqoFkI9+etQnmKB56ZD2rq3R2KeZvUYFvNgWSf961xRz16Y+9W ciSWJ9rDeo2LlQs/zhLhFBsgFqtW/EskLdhC/loHQTGi23/lTHjJ4wH/cnDJnSPX Geyx7mqAZZYAoIVMdlci =4db/ -----END PGP SIGNATURE----- --ww3S8LkFlGIvKkdQJ8rd7Evcs5vREGWDl--