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 1jLrn2-0008T6-UL for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2020 17:13:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLrn1-0006M3-PX for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2020 17:13:31 +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 1jLrn1-0006Lw-Ik for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2020 17:13:31 +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 1jLrmx-0007QN-Hu for pgsql-hackers@postgresql.org; Tue, 07 Apr 2020 17:13:31 +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 407185467B; Tue, 7 Apr 2020 17:13:25 +0000 (UTC) Subject: Re: pgsql: Generate backup manifests for base backups, and validate them. To: Robert Haas , Peter Eisentraut Cc: pgsql-hackers References: <172c9d9b-1d0a-1b94-1456-376b1e017322@2ndquadrant.com> From: David Steele Message-ID: Date: Tue, 7 Apr 2020 13:13:24 -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: 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 4/7/20 12:44 PM, Robert Haas wrote: > On Tue, Apr 7, 2020 at 5:51 AM Peter Eisentraut > wrote: >> On 2020-04-03 21:07, Robert Haas wrote: >>> A new tool called pg_validatebackup can validate a backup against the >>> manifest. >> >> In software engineering, "verify" and "validate" have standardized >> distinct meanings. I'm not going to try to explain them here, but you >> can easily find them online. I haven't formed an opinion on which one >> of them this tool is doing, but I notice that both the man page and the >> messages produced by the tool use the two terms seemingly >> interchangeably. We should try to pick the correct term and use it >> consistently. > > The tool is trying to make sure that we have the same backup that > we're supposed to have, and that the associated WAL is present and > sane. Looking at > https://en.wikipedia.org/wiki/Verification_and_validation, that sounds > more like verification than validation, but I confess that this > distinction is new to me. When I searched I found a two different definitions for validation and verification. One for software development (as in the link above and what I think Peter meant) and another for data (see https://en.wikipedia.org/wiki/Data_validation, https://en.wikipedia.org/wiki/Data_verification, https://www.differencebetween.com/difference-between-data-validation-and-vs-data-verification/) It seems that validation vs. verify as defined in PMBOK (the former sense) does not really apply here, though. That leaves only the latter sense which appears less well-documented but points to "verify" as the better option. Regards, -- -David david@pgmasters.net