pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: Pavel Stehule <pavel.stehule@gmail.com>
To: 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: Tue, 26 Dec 2017 16:42:38 -0500
Message-ID: <3e608a5a-108f-38ad-291c-85447dd9a349@pgmasters.net> (raw)
In-Reply-To: <CAFj8pRC9+_9zDUhGyM+bX4hQx8hbKDAKyoRLhHF1yBXDrDKhOQ@mail.gmail.com>
References: <1e5f1c84-7a65-331e-3d4b-fce95a5e8fc4@simkorp.com.br>
	<2736ceab-73ad-489d-d455-43d38b90cc60@2ndquadrant.com>
	<CAFj8pRD+FStVDHV19nsbRVSkdk_0bKX=guFW3BD68Z0t5igsVQ@mail.gmail.com>
	<5fb54d4c-7f11-b4b2-b33f-1d87e8082524@simkorp.com.br>
	<CAFj8pRA-qpZtoDF=pjBD-GoMTXKBdiz1VpnSShz4mqUz+-RRVw@mail.gmail.com>
	<48b7e2bf-2c53-721d-5cee-b04b7a8c6c98@simkorp.com.br>
	<CAFj8pRC9+_9zDUhGyM+bX4hQx8hbKDAKyoRLhHF1yBXDrDKhOQ@mail.gmail.com>

On 12/26/17 10:57 AM, Pavel Stehule wrote:
> 2017-12-26 16:50 GMT+01:00 Edson Carlos Ericksson Richter 
>>
>     I'm rebuilding the standby server for two days already, with 23% of
>     completion status...
>     If lost the database and backups because of that failure, it would
>     be a giant disaster.
>     Few hours checking integrity would be acceptable... Specially if I
>     can run it on standby only.
> 
> 
> very simple check
> 
> pgdumpall > /dev/null
> 
> but this doesn't check indexes.

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.

-- 
-David
david@pgmasters.net




view thread (51+ messages)  latest in thread

Message-ID: <3e608a5a-108f-38ad-291c-85447dd9a349@pgmasters.net>
Permalink:  ../3e608a5a-108f-38ad-291c-85447dd9a349@pgmasters.net/
Also on:    postgresql.org/message-id/3e608a5a-108f-38ad-291c-85447dd9a349@pgmasters.net

 · 

reply

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, pavel.stehule@gmail.com, richter@simkorp.com.br, martin.marques@2ndquadrant.com
  Subject: Re: Does PostgreSQL check database integrity at startup?
  In-Reply-To: <3e608a5a-108f-38ad-291c-85447dd9a349@pgmasters.net>
  References: <1e5f1c84-7a65-331e-3d4b-fce95a5e8fc4@simkorp.com.br> <2736ceab-73ad-489d-d455-43d38b90cc60@2ndquadrant.com> <CAFj8pRD+FStVDHV19nsbRVSkdk_0bKX=guFW3BD68Z0t5igsVQ@mail.gmail.com> <5fb54d4c-7f11-b4b2-b33f-1d87e8082524@simkorp.com.br> <CAFj8pRA-qpZtoDF=pjBD-GoMTXKBdiz1VpnSShz4mqUz+-RRVw@mail.gmail.com> <48b7e2bf-2c53-721d-5cee-b04b7a8c6c98@simkorp.com.br> <CAFj8pRC9+_9zDUhGyM+bX4hQx8hbKDAKyoRLhHF1yBXDrDKhOQ@mail.gmail.com> <3e608a5a-108f-38ad-291c-85447dd9a349@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