Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c71Lb-0005fD-4E for pgsql-docs@arkaria.postgresql.org; Wed, 16 Nov 2016 14:37:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c71La-00069f-HM for pgsql-docs@arkaria.postgresql.org; Wed, 16 Nov 2016 14:37:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c71LZ-00069E-VZ for pgsql-docs@postgresql.org; Wed, 16 Nov 2016 14:37:58 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c71LV-00022E-Vu for pgsql-docs@postgresql.org; Wed, 16 Nov 2016 14:37:56 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 8D33A5F79A; Wed, 16 Nov 2016 09:36:51 -0500 (EST) Date: Wed, 16 Nov 2016 09:36:51 -0500 From: Stephen Frost To: Gunnar Nick Bluth Cc: pgsql-docs@postgresql.org Subject: Re: Missing important information in backup.sgml Message-ID: <20161116143651.GC13284@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FgUXPK9Pc0n2IByl" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 09:33:10 up 130 days, 15:57, 24 users, load average: 0.05, 0.05, 0.10 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -4.8 (----) 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 --FgUXPK9Pc0n2IByl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Gunnar, all, * Gunnar "Nick" Bluth (gunnar.bluth.extern@elster.de) wrote: > Am 16.11.2016 um 11:37 schrieb Gunnar "Nick" Bluth: > > 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. >=20 > Uhm, well, the actual problem was a stale replication slot... and > tomatoes on my eyes, it seems ;-/. Ashes etc.! >=20 > However, I still think a warning on (esp. rsync's) RCs >=3D 128 is worth > considering (see -v2 attached). Frankly, I wouldn't suggest including such wording as it would imply that using a bare rsync command is an acceptable configuration of archive_command. It isn't. At the very least, a bare rsync does nothing to ensure that the WAL has been fsync'd to permanent storage before returning, leading to potential data loss due to the WAL segment being removed by PG before the new segment has been permanently stored. The PG documentation around archive command is, at best, a starting point for individuals who wish to implement their own proper backup solution, not as examples of good practice for production environments. Thanks! Stephen --FgUXPK9Pc0n2IByl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYLG8DAAoJEO1sijiDR2RVZH4P/3tS2NhwVzeek7zN4dDArzar +PlWDsFCEx98ELgTaza8NxddC+Q3raA2L6hhUflKjKtGGTp8tyESaoNmVJBnPows psQOKp5xmmMKhRNwDpz4s3w8l3NIt47pC80TNFccfaf6twF5gMrRQ2R54zpLVPP/ cF+uvIqGXC7YjAl1JN7CvdKqEp+Qkv0C2sxc+dh/zQD057mff6eviFU4Gv5Xr4Qm atlphAGZw1oogIa9i7Vf8gb2XIFj2lV9bDNiGUrxrxcJTPTR+rt1DfQb4zdQMnrP NXX7vFV+nhoPVnk/sfS6dKJepb6vdL6IdcWHENTv2naIyvcUTCPvUmlhgs/CHJZV OrNL8PN9MuPkzQ0FmEcxA4740eZVLWZPhiSG6yOwAMhKTTOGvgyl9jiXLq9NfWKa +WJTrSRQMy5SnI8dMG028cPFm7GGH7Hpu4jWs1O/bDlVJ7N29eRbZwQ206D+Gqtw lZ4dUPPoPpGiytj+fveTRFEgMEwDmhDx341MG3WOX1XyGyHW6CEmnBzBxhTKnR/6 vGY9bDOrwugrDa8MNeqccLrxdcFcv/UH4wcjcIBCCGZ5jHbWqyRcBPnJCZuoyWW/ ITZA7h1VwvkwxY0wiV1IGnOdrZ8PN8BSyDMOuwuDnMBqe5ThVVE1j1Z7FNFfD/C+ +r+A1ByVNIHAlTwhQB/o =x7t4 -----END PGP SIGNATURE----- --FgUXPK9Pc0n2IByl--