From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Stephen Frost <sfrost@snowman.net>
Cc: Edson Carlos Ericksson Richter <richter@simkorp.com.br>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Does PostgreSQL check database integrity at startup?
Date: Wed, 27 Dec 2017 13:47:46 -0300
Message-ID: <20171227164746.hnoqqxefp5abzjwz@alvherre.pgsql> (raw)
In-Reply-To: <20171227144951.GU4628@tamriel.snowman.net>
Stephen Frost wrote:
> * Edson Carlos Ericksson Richter (richter@simkorp.com.br) wrote:
> > Anyway, instead digging into rsync functionality (or bugs - I doubt,
> > but who knows?), I do prefer to have a script I can run to check if
> > there is obvious failures in standby servers.
>
> As mentioned, zero-byte files can be perfectly valid. PostgreSQL does
> have page-level CRCs, if you initialized your database with them (which
> I would strongly recommend).
Page-level checksums would not detect the problem being complained in
this thread, however.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, sfrost@snowman.net, richter@simkorp.com.br
Subject: Re: Does PostgreSQL check database integrity at startup?
In-Reply-To: <20171227164746.hnoqqxefp5abzjwz@alvherre.pgsql>
References: <20171227144951.GU4628@tamriel.snowman.net> <20171227164746.hnoqqxefp5abzjwz@alvherre.pgsql>
* 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