From: Michael Paquier <michael@paquier.xyz>
To: Jeremy Schneider <schnjere@amazon.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: BGoebel <b.goebel@prisma-computer.de>
Cc: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: Using of --data-checksums
Date: Fri, 17 Apr 2020 09:32:35 +0900
Message-ID: <20200417003235.GE81957@paquier.xyz> (raw)
In-Reply-To: <f8a4936b-79b6-91b4-426d-c6d81ea5b89e@amazon.com>
References: <1586272213908-0.post@n3.nabble.com>
<20200408155434.GG13712@tamriel.snowman.net>
<20200410202508.GB24987@momjian.us>
<20200410203746.GA13712@tamriel.snowman.net>
<20200412060513.GA6012@paquier.xyz>
<CABUevExgGTjHeNvKORX_zhx7rN7gocNcGE1e-Xp9E744Ci3Dvw@mail.gmail.com>
<13634.1586701404@sss.pgh.pa.us>
<f8a4936b-79b6-91b4-426d-c6d81ea5b89e@amazon.com>
On Thu, Apr 16, 2020 at 03:47:34PM -0700, Jeremy Schneider wrote:
> Data checksums are a hard requirement across the entire RDS PostgreSQL
> fleet - we do not allow it to be disabled in RDS. I've definitely seen a
> lot of hard evidence (for example, customer cases I've personally been
> involved in) that it catches problems.
Oh, that's good to know. Thanks for the information. I pushed hard
as well to make this a requirement on what I work on.
> I could not exaggerate how useful
> and important I think this feature is: being able to very quickly and
> easily know that a problem originated outside of the PostgreSQL code.
The worst part with checksums disabled is having to tell a customer or
a support staff that you don't actually know from where the problem
comes, what is the actual origin of it, and why you think that the
error you are seeing in the Postgres logs is most likely linked to a
lower-level corruption as there can be many patterns, like broken
btree pages, toast errors, missing attributes in catalogs, failures
with FK references, primary key duplicates, etc. And people like
to complain a lot about the database being broken because that's a
very sensitive piece and usually more things depend on it. With
checksums enabled, you still cannot say exactly from where the problem
comes, but you can redirect the complains more easily to the correct
people to help find out what the actual problem is. Even better, you
can also know if a problem probably comes directly from Postgres and
some backend logic if you don't see a checksum failure (note that
could be as well a misdesigned HA workflow, custom backup script as
well who knows but at least you know that something you control
directly gets wrong). And the error message provided is clear.
> This was in part what led to that long blog article I wrote about
> checksums, and it's why enabling checksums was happiness hint #1 until I
> broke them into categories.
Reference? ;p
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, schnjere@amazon.com, tgl@sss.pgh.pa.us, magnus@hagander.net, sfrost@snowman.net, bruce@momjian.us, b.goebel@prisma-computer.de
Subject: Re: Using of --data-checksums
In-Reply-To: <20200417003235.GE81957@paquier.xyz>
References: <1586272213908-0.post@n3.nabble.com> <20200408155434.GG13712@tamriel.snowman.net> <20200410202508.GB24987@momjian.us> <20200410203746.GA13712@tamriel.snowman.net> <20200412060513.GA6012@paquier.xyz> <CABUevExgGTjHeNvKORX_zhx7rN7gocNcGE1e-Xp9E744Ci3Dvw@mail.gmail.com> <13634.1586701404@sss.pgh.pa.us> <f8a4936b-79b6-91b4-426d-c6d81ea5b89e@amazon.com> <20200417003235.GE81957@paquier.xyz>
* 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