Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jIj93-0005hv-C0 for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2020 01:23:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jIj91-0005mZ-Vb for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2020 01:23:15 +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 1jIj91-0005mS-OJ for pgsql-hackers@lists.postgresql.org; Mon, 30 Mar 2020 01:23:15 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIj8v-0000IO-AU for pgsql-hackers@postgresql.org; Mon, 30 Mar 2020 01:23:15 +0000 Received: from Davids-MacBook-Pro.local (c-73-39-102-148.hsd1.va.comcast.net [73.39.102.148]) (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 1CC01546A6; Mon, 30 Mar 2020 01:23:07 +0000 (UTC) Subject: Re: backup manifests To: Andres Freund , Robert Haas Cc: Noah Misch , Stephen Frost , Amit Kapila , Suraj Kharage , tushar , Rajkumar Raghuwanshi , Rushabh Lathia , Tels , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C References: <20200323224217.GN13712@tamriel.snowman.net> <20200325133106.GS13712@tamriel.snowman.net> <20200325205433.GV13712@tamriel.snowman.net> <16538d02-fd4b-6c4f-81a5-132c8fe8c3e9@pgmasters.net> <20200329034010.GB2247658@rfd.leadboat.com> <20200330010740.4remdjgnftyuiz2v@alap3.anarazel.de> From: David Steele Message-ID: Date: Sun, 29 Mar 2020 21:23:06 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200330010740.4remdjgnftyuiz2v@alap3.anarazel.de> 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 3/29/20 9:07 PM, Andres Freund wrote: > On 2020-03-29 20:42:35 -0400, Robert Haas wrote: >>> What do you think of having the verification process also call pg_waldump to >>> validate the WAL CRCs (shown upthread)? That looked helpful and simple. >> >> I don't love calls to external binaries, but I think the thing that >> really bothers me is that pg_waldump is practically bound to terminate >> with an error, because the last WAL segment will end with a partial >> record. > > I don't think that's the case here. You should know the last required > record, which should allow to specify the precise end for pg_waldump. If > it errors out reading to that point, we'd be in trouble. Exactly. All WAL generated during the backup should read fine with pg_waldump or there is a problem. -- -David david@pgmasters.net