From: Paul Förster <paul.foerster@gmail.com>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_checksums?
Date: Sun, 29 Oct 2023 19:01:43 +0100
Message-ID: <39A3E175-E161-4325-A4AE-41B088FFADF6@gmail.com> (raw)
In-Reply-To: <20231029153841.vl4bqwv33j3q2xgu@hjp.at>
References: <22272207-E6E5-4DD5-9BD4-5F6B647E2C3B@gmail.com>
<0D18D31E-EF52-434D-875C-08BEC8DDD553@yesql.se>
<ZTwpx1sCIu-4EgRH@momjian.us>
<AB7D1C87-F9E6-4068-9AA9-8591C82CF9CC@gmail.com>
<20231029014310.7pbdfhincj2tds4l@hjp.at>
<81D43A87-7D3D-4F81-B462-641F15B5E332@gmail.com>
<20231029104911.dj73ivozabdr5or4@hjp.at>
<4614561A-6176-4136-BA96-74B05A7B6B5C@gmail.com>
<20231029153841.vl4bqwv33j3q2xgu@hjp.at>
Hi Ron,
> On Oct 29, 2023, at 16:38, Peter J. Holzer <hjp-pgsql@hjp.at> wrote:
> And this is where it would break down. The modifications can't be
> applied to the replica any more because the replica now contains
> checksums and the modifications don't. In the best case the replica
> would catch the discrepancy and refuse to apply the modifications which
> would lead to the loss of these modifications. In the worst case it
> would apply them anyway causing severe data corruption.
...
> Not just the file headers. Every single data block.
>
> (Ok, it looks like the space for the checksum is reserved even if
> checksums aren't enabled[1]. So at least pg_checksums doesn't have to
> move data around to enable them. But overwriting a page with a checksum
> with one without one would still be bad.)
Those are the kind of answers and insights I was looking for. Thank you very much.
Ok, I will do a reinit then.
Cheers
Paul
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: paul.foerster@gmail.com, hjp-pgsql@hjp.at
Subject: Re: pg_checksums?
In-Reply-To: <39A3E175-E161-4325-A4AE-41B088FFADF6@gmail.com>
References: <22272207-E6E5-4DD5-9BD4-5F6B647E2C3B@gmail.com> <0D18D31E-EF52-434D-875C-08BEC8DDD553@yesql.se> <ZTwpx1sCIu-4EgRH@momjian.us> <AB7D1C87-F9E6-4068-9AA9-8591C82CF9CC@gmail.com> <20231029014310.7pbdfhincj2tds4l@hjp.at> <81D43A87-7D3D-4F81-B462-641F15B5E332@gmail.com> <20231029104911.dj73ivozabdr5or4@hjp.at> <4614561A-6176-4136-BA96-74B05A7B6B5C@gmail.com> <20231029153841.vl4bqwv33j3q2xgu@hjp.at> <39A3E175-E161-4325-A4AE-41B088FFADF6@gmail.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