Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNVkH-0002de-SC for pgsql-general@arkaria.postgresql.org; Sun, 12 Apr 2020 06:05:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jNVkF-0004Ea-FX for pgsql-general@arkaria.postgresql.org; Sun, 12 Apr 2020 06:05:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNVkD-0004EQ-Bd for pgsql-general@lists.postgresql.org; Sun, 12 Apr 2020 06:05:27 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNVk9-0005y1-9o for pgsql-general@postgresql.org; Sun, 12 Apr 2020 06:05:24 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id AF1BC723; Sun, 12 Apr 2020 02:05:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 12 Apr 2020 02:05:19 -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=fm1; bh=limXwP71IKIscAQ1h5AgnK9tfnU ytPT68JiZiwCVTx4=; b=dOHxS21glFBjkDnXjohrJhxTeqLBQWRfe7HkSAaWBFa XhreANP2V4/vwmQBGkl92hqjmYR4r2bxdpE1gtCsxWkWwcMKYXIkxYZ3sV79S0j2 7/TkrIx7aubbcVOhK4qrD2tLN9jwAK/UEcCpI7h0lsOZe2HGZG4ZX19EUjqmsdB4 NEs9S+wjspA/VyOIyywnbRyROOhPSXoP5lQLhklmfLEbGYcPHMGcOShJseVXnpT+ 59M0mujR8PbbJGBjO+PQKNSpQ8WabNQTP61SPI5RByQcwqEwZ/rQ7PF8BxBgZJXN bPs8aA9RTH0eaifdzSQEgw/Qrqx+fjSKFDNclBY5eDQ== 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=fm2; bh=limXwP 71IKIscAQ1h5AgnK9tfnUytPT68JiZiwCVTx4=; b=197CVtIJamq0ltbnDsnljw SWm3XWe+9Ew48tC0LyHuYRzmyXygbGBs3FDYMboZ2EhExb0Fp4qlHio38ALCD+Za pA9TG9aJkF+0fF4HwR3kgFNZRDnXUlwdz5RPBC1ARTgGGldSj1oVGGhmhmbbZWS6 KZ9gfXtHKivnFO0rWA4bK001gf1+7XN6YKs3rwwh4d3DvRf1HmqR8/2er/CwSAqF BfcM+mAM2vkULCOTGXq7j+l6NZKl+94PBqupPiIKciGF6AF9+vCbtmHWFmvubJAJ 39BsnSejKTuRUjGyPtxFeBZzsaBILRA+8d1iZs651HvYSjItYToV91a3HzhwGjcQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrvdeigddtlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddu uddruddtvddrudektddrudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 8F0483060067; Sun, 12 Apr 2020 02:05:16 -0400 (EDT) Date: Sun, 12 Apr 2020 15:05:13 +0900 From: Michael Paquier To: Stephen Frost Cc: Bruce Momjian , BGoebel , pgsql-general@postgresql.org Subject: Re: Using of --data-checksums Message-ID: <20200412060513.GA6012@paquier.xyz> References: <1586272213908-0.post@n3.nabble.com> <20200408155434.GG13712@tamriel.snowman.net> <20200410202508.GB24987@momjian.us> <20200410203746.GA13712@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <20200410203746.GA13712@tamriel.snowman.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Apr 10, 2020 at 04:37:46PM -0400, Stephen Frost wrote: > There's definitely a lot of reasons to want to have the ability to > change an existing cluster. Considering the complications around > running pg_upgrade already, I don't really think that changing the > default of initdb would be that big a hurdle for folks to deal with- > they'd try the pg_upgrade, get a very quick error that the new cluster > has checksums enabled and the old one didn't, and they'd re-initdb the > new cluster and then re-run pg_upgrade to figure out what the next issue > is.. We discussed that a couple of months ago, and we decided to keep that out of the upgrade story, no? Anyway, if you want to enable or disable data checksums on an existing cluster, you always have the possibility to use pg_checksums --enable. This exists in core since 12, and there is also a version on out of core for older versions of Postgres: https://github.com/credativ/pg_checksums. On apt-based distributions like Debian, this stuff is under the package postgresql-12-pg-checksums. -- Michael --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6Sr5kACgkQnvQgOdby QH0BzA//froVARq8VBiOz4X0fjzRORgZjIBlKfcftsnfVlDjsUyifRPP+VdD1m8O 6xULwxgvEX6W5lEZ0VQCSPKgAD0frc1odlIULO2VhNKEXX3E02vzkxRuXRydSosK 5mi5pMJdQdsBhuFPik3xPk3gjtBe625WrOZIvSFMLQYIETAU6LlEBULAnT0KtWAC MO/i1cgPPHKix+39SjYaxtQSvfFOF3LamRLwjl1aw2AWdfAYM2w+VVipTiGJ7U8x VrmLKqYEYzWJ6HRC5A3km/Tljj8iXBQnaksIhFuyOIkSyPLDGZ9chvrDY2VjS5PG XgdXH3xCWKRDX9uMvt/8zqY04pQ+vwd5p0ywGNgcOE4NYvzlwphQ6zXeRh1C/8tQ c/KzWC3SK5VwF4ADsALNuWPJ19xqi1kWGYpONIIJXnnZghV0JR0zpG970NLZRvUY Wzf5gBxvg48y3WYpyH2A6IaKorfJd6xqwSiDzkQejKEjFf4LTgiHbcmhrbsmAdE9 EZue6tWgVrWAvbdkX9nfPdDjrUl41YIB7Nz9z8xkg9YVlq3v9Qka4vojIzkigMAw C/vd7+Q1hSXObMUEA54rWYI5ItpjbdSd5ky+bADiBLMw/pMnMcbCsIrSlS1//sFr cxJpJkN/AexTtk/pxZi2pLfcO11wvQbj0sEbctKmU8+YYd3P/vE= =rGcO -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--