Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKoBq-00015M-VT for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 17:01:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fKoBp-0005rg-FN for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 17:01:41 +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.89) (envelope-from ) id 1fKoBp-0005rV-7a for pgsql-general@lists.postgresql.org; Mon, 21 May 2018 17:01:41 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fKoBi-0003bb-37 for pgsql-general@postgresql.org; Mon, 21 May 2018 17:01:40 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id D55615F79F; Mon, 21 May 2018 13:01:32 -0400 (EDT) Date: Mon, 21 May 2018 13:01:32 -0400 From: Stephen Frost To: Christoph Moench-Tegeder Cc: Yashwanth Govinda Setty , "pgsql-general@postgresql.org" Subject: Re: Will Altering and Modifying tables during backup result in a corrupted server after the restore? Message-ID: <20180521170132.GD27724@tamriel.snowman.net> References: <4a42c6eb5542496ba13944c95e848325@POST-1.gp.cv.commvault.com> <20180521164919.GA97744@elch.exwg.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EHzrsV5WNIVt1WkB" Content-Disposition: inline In-Reply-To: <20180521164919.GA97744@elch.exwg.net> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --EHzrsV5WNIVt1WkB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Christoph Moench-Tegeder (cmt@burggraben.net) wrote: > ## Yashwanth Govinda Setty (ygovindasetty@commvault.com): >=20 > > 2. Restore the server with transaction logs >=20 > This is missing a lot of details. If you do it right - see your email > thread from one week ago - you will be able to recover the database > server to a state as of the _end_ of the backup process (as marked by > the return of the pg_stop_backup() command). > If you do not follow the backup/restore documentation to the letter, > the database will be corrupted and will not start (sometimes people > report with haphazard backup schemes, but that's just more luck than > they deserve, and nobody should rely on that). Please also note that the PG documentation provided, when it comes to the examples, are purely for usage demonstration only and shouldn't be considered a good idea when it comes to implementing an actual solution. Using only "cp" for archive_command is a particularly bad idea as it doesn't sync the file to disk. Be sure to also heed the recommendation about using the non-exclusive backup method and *not* using the exclusive backup method. Thanks! Stephen --EHzrsV5WNIVt1WkB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJbAvtsAAoJEO1sijiDR2RV8ggP/26hLw5jTMibSRDAbCM5jqs/ +Z34Y3KU4QM5b6k4vfDiM/ie3f5HApd1+ElwIL+gQaYWqyz4nLBuGLgTOMFBsC+R SRB0VKQ6r36FBU4WRAoldOsT7OFeak7raj5cvTnZrIQfYvm4JkXEA8tiv4AateBL E0FSV+l3vKBOP267kL89sEKDn6CYyaiI4qc9TjdS/uDC3JFrId9WV0Bvzzi7UCfk YaBx3U4lffcWvwMlpWZqDKcQVTIhsUj1l6GPAE2q2h9qOykWKhFtjs5tvE8bQZTa DV1mUxjfUX5kAmRxVytzrwuws5/oFvMJhnET1NTQyf4lHiMgRahZEsC371rCHW6L v+RQ9YfjumE7RqNF6Jxr9GmeD8Hib6BrGe9cKxedPgkg2wOiKOBuSQlxl8VOBi5i TiIMSG4IUk/wQy49XNf/kYt/P7NW9oOdXATEcKO/0CmQXYUTFrLTB1m0VBASab6C y5tIwVpAVYI0ZqhnEMNaADDG/B3G41i7liqxcBiuaQ2efxyOJeQ5OJAvzbZYOcKt m6bcNw8RfDJuuuBK8cb+88rFmZIfL1OGUKFU459JzpTodx86Ulq1XvLwx8Ydj+s1 XMwKgrPKZebXiKslUTqvHQuDRY0A+ALAfUbExQ3T/Nu1IFq3xAUexJRtn8nPlMPw CuVdhqR9yLfyCOnbxmKj =K9k3 -----END PGP SIGNATURE----- --EHzrsV5WNIVt1WkB--