pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Karsten Hilbert <Karsten.Hilbert@gmx.net>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: pg_dump include/exclude data, was: verify checksums / CREATE DATABASE
Date: Fri, 07 Jun 2019 11:41:36 -0400
Message-ID: <6614.1559922096@sss.pgh.pa.us> (raw)
In-Reply-To: <65d1d891-5063-2094-9e3b-7b0e2926f82c@aklaver.com>
References: <20190605144737.GC16572@hermes.hilbert.loc>
	<CABUevEw8c+5nW0mgFBjhbvefzyxFnFL77BrjTZMRQqRQ1pWBHg@mail.gmail.com>
	<20190606135037.GJ1767@hermes.hilbert.loc>
	<65d1d891-5063-2094-9e3b-7b0e2926f82c@aklaver.com>

On 6/6/19 6:50 AM, Karsten Hilbert wrote:
>> The current canonical solution (?) for verifying checksums in
>> an existing database is, to may understanding, to pg_dump it
>> (to /dev/null, perhaps):
>> as that will read and verify all blocks related to the dump
>> of that database.

FWIW, that doesn't seem especially canonical from here.  In particular,
pg_dump will not normally result in any examination at all of indexes
on user-defined tables --- it'll just be doing seqscans of the tables
proper.  You could hope for reasonably complete coverage of the system
catalogs along with user tables, but missing out user indexes seems
like a pretty big gap.

The actual solution for this as of v11 is pg_verify_checksums
(renamed to just pg_checksums for v12).  I don't think there's
any really convincing answer before v11.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <6614.1559922096@sss.pgh.pa.us>
Permalink:  ../6614.1559922096@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6614.1559922096@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, Karsten.Hilbert@gmx.net
  Subject: Re: pg_dump include/exclude data, was: verify checksums / CREATE DATABASE
  In-Reply-To: <6614.1559922096@sss.pgh.pa.us>
  References: <20190605144737.GC16572@hermes.hilbert.loc> <CABUevEw8c+5nW0mgFBjhbvefzyxFnFL77BrjTZMRQqRQ1pWBHg@mail.gmail.com> <20190606135037.GJ1767@hermes.hilbert.loc> <65d1d891-5063-2094-9e3b-7b0e2926f82c@aklaver.com> <6614.1559922096@sss.pgh.pa.us>

* 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