Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTwzs-0004Cn-DG for pgsql-general@arkaria.postgresql.org; Tue, 26 Dec 2017 21:42:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTwzp-00027I-Mm for pgsql-general@arkaria.postgresql.org; Tue, 26 Dec 2017 21:42:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eTwzp-000278-7e for pgsql-general@lists.postgresql.org; Tue, 26 Dec 2017 21:42:49 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eTwzh-0007Sp-M9 for pgsql-general@postgresql.org; Tue, 26 Dec 2017 21:42:47 +0000 Received: from Davids-MacBook.local (ip72-219-238-175.dc.dc.cox.net [72.219.238.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 116D95478E; Tue, 26 Dec 2017 21:42:39 +0000 (UTC) Subject: Re: Does PostgreSQL check database integrity at startup? To: Pavel Stehule , Edson Carlos Ericksson Richter Cc: Martin Marques , "pgsql-general@postgresql.org" References: <1e5f1c84-7a65-331e-3d4b-fce95a5e8fc4@simkorp.com.br> <2736ceab-73ad-489d-d455-43d38b90cc60@2ndquadrant.com> <5fb54d4c-7f11-b4b2-b33f-1d87e8082524@simkorp.com.br> <48b7e2bf-2c53-721d-5cee-b04b7a8c6c98@simkorp.com.br> From: David Steele Message-ID: <3e608a5a-108f-38ad-291c-85447dd9a349@pgmasters.net> Date: Tue, 26 Dec 2017 16:42:38 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/26/17 10:57 AM, Pavel Stehule wrote: > 2017-12-26 16:50 GMT+01:00 Edson Carlos Ericksson Richter >> > I'm rebuilding the standby server for two days already, with 23% of > completion status... > If lost the database and backups because of that failure, it would > be a giant disaster. > Few hours checking integrity would be acceptable... Specially if I > can run it on standby only. > > > very simple check > > pgdumpall > /dev/null > > but this doesn't check indexes. pgBackRest will validate all page checksums (including indexes, etc.) in the cluster during backup. Full backups check everything, incr/differential backups check only the files that have changed. -- -David david@pgmasters.net