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 1jPDIR-0002pP-5q for pgsql-general@arkaria.postgresql.org; Thu, 16 Apr 2020 22:47:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPDIQ-00022o-1m for pgsql-general@arkaria.postgresql.org; Thu, 16 Apr 2020 22:47:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPDIP-00022h-P0 for pgsql-general@lists.postgresql.org; Thu, 16 Apr 2020 22:47:45 +0000 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPDIN-0002kg-3K for pgsql-general@postgresql.org; Thu, 16 Apr 2020 22:47:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1587077264; x=1618613264; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=Iy0kU4pSnptYrkO1ryFVS2mJ8hWyXsabFyYQxtrnPZw=; b=rOS65UtyK3E8nQDd6YHXsrcuYCWZJ78sYyiutRxi7lJl1V5ynYhsmEnL Qlr+uYwH1Ax540RO80lP20sawI8m9FDl1vudQzh7j7MNInwO8Oea1ciau NqpMtZzMVnSR5e77DdxD47Lj/Cq/cVqrtr4tWG5TW9oXcCl4ipHLylWsJ 8=; IronPort-SDR: 0yPK7AxPkU1q0dBriPbKJKhYgZ8glpoblmmYX4viP2H2ZVbEzMcWzIZLYVlTQDaNNSfi7ZgnPO dkeMyUEqaklQ== X-IronPort-AV: E=Sophos;i="5.72,392,1580774400"; d="scan'208";a="29238500" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1e-97fdccfd.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 16 Apr 2020 22:47:38 +0000 Received: from EX13MTAUWA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-97fdccfd.us-east-1.amazon.com (Postfix) with ESMTPS id 503BFA18A0; Thu, 16 Apr 2020 22:47:34 +0000 (UTC) Received: from EX13D18UWA002.ant.amazon.com (10.43.160.199) by EX13MTAUWA001.ant.amazon.com (10.43.160.118) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 16 Apr 2020 22:47:34 +0000 Received: from 186590ce269b.ant.amazon.com (10.43.161.52) by EX13D18UWA002.ant.amazon.com (10.43.160.199) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 16 Apr 2020 22:47:34 +0000 Subject: Re: Using of --data-checksums To: Tom Lane , Magnus Hagander CC: Michael Paquier , Stephen Frost , Bruce Momjian , BGoebel , pgsql-general General References: <1586272213908-0.post@n3.nabble.com> <20200408155434.GG13712@tamriel.snowman.net> <20200410202508.GB24987@momjian.us> <20200410203746.GA13712@tamriel.snowman.net> <20200412060513.GA6012@paquier.xyz> <13634.1586701404@sss.pgh.pa.us> From: Jeremy Schneider Message-ID: Date: Thu, 16 Apr 2020 15:47:34 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <13634.1586701404@sss.pgh.pa.us> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.43.161.52] X-ClientProxiedBy: EX13D43UWA004.ant.amazon.com (10.43.160.108) To EX13D18UWA002.ant.amazon.com (10.43.160.199) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/12/20 07:23, Tom Lane wrote: > Magnus Hagander writes: >> And FWIW, I do think we should change the default. And maybe spend some >> extra effort on the message coming out of pg_upgrade in this case to make >> it clear to people what their options are and exactly what to do. > > Is there any hard evidence of checksums catching problems at all? > Let alone in sufficient number to make them be on-by-default? Data checksums are a hard requirement across the entire RDS PostgreSQL fleet - we do not allow it to be disabled in RDS. I've definitely seen a lot of hard evidence (for example, customer cases I've personally been involved in) that it catches problems. I could not exaggerate how useful and important I think this feature is: being able to very quickly and easily know that a problem originated outside of the PostgreSQL code. This was in part what led to that long blog article I wrote about checksums, and it's why enabling checksums was happiness hint #1 until I broke them into categories. FWIW, I also strongly agree that checksums should be enabled by default in the git.postgresql.org code. -Jeremy -- Jeremy Schneider Database Engineer Amazon Web Services