Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hh35E-00068g-LT for pgsql-general@arkaria.postgresql.org; Sat, 29 Jun 2019 02:27:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hh35C-0004bo-Rv for pgsql-general@arkaria.postgresql.org; Sat, 29 Jun 2019 02:27:18 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hh35C-0004bh-IJ for pgsql-general@lists.postgresql.org; Sat, 29 Jun 2019 02:27:18 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hh359-000812-Tt for pgsql-general@lists.postgresql.org; Sat, 29 Jun 2019 02:27:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B6AA1212BF; Fri, 28 Jun 2019 22:27:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 28 Jun 2019 22:27:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=SteYAsHrlERkV8XOFxKtnXrt28u pTbMg8b+V2qxIB8I=; b=NkQNl0VSRffkWw3VX+7SZBUi7D17sfhYmE+JJ1NZ5xh j7e+LDkGwdsjtg3wt5rAnOwnQDx9a5YlAO0oyemT4EBL+PfLsp2r8fhpiUw2XyK+ /kSNDDCe8U+ka7xBkhapeCVCp5KvizSsslZSM7jr2TZVCdDyuFmtBFox/77onKIc WXt/Sq3jw+adRZVOfxSUst6UVeDSzAGVhcZSQ91i99BnCiuzUTTI/a3Mg+PLvKYp zGHhk//JJT/0vF8xSd9/0u053Rxcp+sgdJTMouiQ1CFy0S2wChY4X4Uinw/DIboB AFiBxHgbrmdyT/wHRCPJS1wxZXSFpYm0o1hcjLo+5Eg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=SteYAs HrlERkV8XOFxKtnXrt28upTbMg8b+V2qxIB8I=; b=ApOlUgAG8skJyehJc12Wfv zJK7gF3PjtKbM70KdkIqOxVtMUndJr120xMY/50gl1p1TZuymJ41gI+P5aFeBwGf zrrXKwjWcWGk704DCRmP8WHG0UL2BYBib3hSG8IQWJuK4c+5re4p5wZvg+lM/klv 2FDG7hI0AanUDo0epSa9+DxH0D2IgBCUOYynXrSduyJwwgnWfYKFBPCQNekunPAf ntHjD273izg+ezvVq4o3tL0NI0vj2NBMRNPlBvGB2OVJxPLQPzv8+LJ9vYJLx4Jp GXkKNNsrhFJMLmdFrDoFaHST8JGz0vflBHOcNawUl4GrK38C2S87uNjIe2UZB3Ug == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrvddugdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduudekrddvgedurddvgeelrddvhedunecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1f9fb.ap.nuro.jp [118.241.249.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 9F2658005B; Fri, 28 Jun 2019 22:27:12 -0400 (EDT) Date: Sat, 29 Jun 2019 11:27:09 +0900 From: Michael Paquier To: Brad Nicholson Cc: Grigory Smolkin , pgsql-general@lists.postgresql.org Subject: Re: Re: Re: Enabling checksums on a streaming replica Message-ID: <20190629022709.GC2191@paquier.xyz> References: <92db1a5e-109e-c7b1-504b-7a897ba7d732@postgrespro.ru> <20190628031710.GB1797@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zCKi3GIZzVBPywwA" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --zCKi3GIZzVBPywwA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jun 28, 2019 at 07:43:30AM -0400, Brad Nicholson wrote: > So if all the checksums are being recalculated on the replica, this > approach should be relatively safe, should it not? Yep. > Assuming pg_checksums is doing the right thing (and it looks to me like it > should be). The constraint that a cluster needs to be cleanly shut down to be able to enable checksums with pg_checksums is the actual deal here. After that of course comes the WAL retention on the primary or in the WAL archives that a standby would need again to catch up while it was offline. -- Michael --zCKi3GIZzVBPywwA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl0WzH0ACgkQnvQgOdby QH3gfA/+NqNe5JKYjje3wQO7C699wS4eryyKk2kR1MuzsFoCBzrJ5ucSGQKUR+to p11mMqu3Haug0sPZ0cEpSBLZKIoUrB4g9DLgXa7ibV+mdumWmHNOjOMsJAFr7eF5 z92ZkNS145UnRCuYy+KGzY1B43xGSVq3zJ0sJvrWhiFRvx0OMOk5oHzs3E162BEU levRqqzkFa20KW/RzxWTKIg4QIHXbKSKHTUBabMqOw+SLSIG+FK09O7maLKuqONw oMevx4DsQZ14g16wyHdkpSicM8sRV/IOlMS3/bpsnTSPwOptHZNy81o0ra7F5qi9 3vohlHz0+SWnpl5k7a9ZRCPJI7JC5r+U/HyHXxgKx6n6RI0rBHK9/vUTjGNnY0al Bu3BoIat8zTNOzQj4nvRlhRdwsak6vruc1VVeP3zLC+IcfU3/GVSJl9gFUvzXT7M q2TIzUD8HAZo4nFo1ux66+jdLoPDF5mDfv4t9x2miu+iHL7sj0mzc2i+pAgda1YO AfcfNIuyo24OVuEnZCsQICrEWLeiCdjsa8L61Q1GqmYkAyNd4B1d5kRYDCtZyTKj hE7tHvVgVElezFzcElLBTdKClgOljPglERsRtVYzSJ4PnUw3DQheyyHNpD77QMix 11T/ZUeZNxEvk4+d9yRLFT8qUn/Dxli2BgJW1O2XhLNVatdeKc0= =csrO -----END PGP SIGNATURE----- --zCKi3GIZzVBPywwA--