From: Martin Marques <martin.marques@2ndquadrant.com>
To: Edson Carlos Ericksson Richter <richter@simkorp.com.br>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Does PostgreSQL check database integrity at startup?
Date: Tue, 26 Dec 2017 10:44:40 -0300
Message-ID: <2736ceab-73ad-489d-d455-43d38b90cc60@2ndquadrant.com> (raw)
In-Reply-To: <1e5f1c84-7a65-331e-3d4b-fce95a5e8fc4@simkorp.com.br>
References: <1e5f1c84-7a65-331e-3d4b-fce95a5e8fc4@simkorp.com.br>
El 26/12/17 a las 09:52, Edson Carlos Ericksson Richter escribió:
> Recently I had a problem with a base file with size 0 in a standby server.
>
> This raised one question: does PostgreSQL (9.6.6) check base integrity
> at startup?
>
> At least if there are 0 byte size files in base dir? Or CRC? Something?
Yes it has CRC check, but only if you initialize the cluster with
--data-checksums, and there's a price to pay in performance.
--
Martín Marqués http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, 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: martin.marques@2ndquadrant.com, richter@simkorp.com.br
Subject: Re: Does PostgreSQL check database integrity at startup?
In-Reply-To: <2736ceab-73ad-489d-d455-43d38b90cc60@2ndquadrant.com>
References: <1e5f1c84-7a65-331e-3d4b-fce95a5e8fc4@simkorp.com.br> <2736ceab-73ad-489d-d455-43d38b90cc60@2ndquadrant.com>
* 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