From: David Steele <david@pgmasters.net>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Edson Carlos Ericksson Richter <richter@simkorp.com.br>
Cc: Martin Marques <martin.marques@2ndquadrant.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Does PostgreSQL check database integrity at startup?
Date: Wed, 27 Dec 2017 18:03:31 -0500
Message-ID: <0088da88-7249-7292-e922-e0fb6712c535@pgmasters.net> (raw)
In-Reply-To: <20171226215847.7elei2bexrfin2rs@alvherre.pgsql>
References: <20171226215847.7elei2bexrfin2rs@alvherre.pgsql>
On 12/26/17 4:58 PM, Alvaro Herrera wrote:
>
>> 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.
>
> If a table or index file is of zero length when backed up, as in the
> described case, nothing will be checked, right? I mean, there is
> nothing externally indicating that the file ought to be of a different
> size. Am I wrong?
Yes - that is how it works.
> So Edson's situation here would not raise any red
> flags.
It wasn't clear to me from the OP that the primary and standby were
different - I thought there was just a zero file in general.
In any case, my reply was more directed at Pavel's reply about using
pg_dump to validate checksums. There are better ways...
--
-David
david@pgmasters.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: david@pgmasters.net, alvherre@alvh.no-ip.org, pavel.stehule@gmail.com, richter@simkorp.com.br, martin.marques@2ndquadrant.com
Subject: Re: Does PostgreSQL check database integrity at startup?
In-Reply-To: <0088da88-7249-7292-e922-e0fb6712c535@pgmasters.net>
References: <20171226215847.7elei2bexrfin2rs@alvherre.pgsql> <0088da88-7249-7292-e922-e0fb6712c535@pgmasters.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox