Re: pg_checksums? - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: pg_checksums?
Date
Msg-id 20231029014310.7pbdfhincj2tds4l@hjp.at
Whole thread Raw
In response to Re: pg_checksums?  (Paul Förster <paul.foerster@gmail.com>)
Responses Re: pg_checksums?
List pgsql-general
On 2023-10-27 23:37:24 +0200, Paul Förster wrote:
> But unfortunately still, my questions c) and d) are unanswered. I'd
> especially be interested in an answer to c), i.e. is it *safe* to
> "pg_checksum -e" the replica instance in a patroni cluster, switch
> over, and then do the other one?

I don't think so. AFAIK Replication keeps the data files in sync on a
bit-for-bit level and turning on checksums changes the data layout.
Running a cluster where one node has checksums and the other doesn't
would result in a complete mess.

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment

pgsql-general by date:

Previous
From: Jim Mlodgenski
Date:
Subject: Re: Disk wait problem... may not be hardware...
Next
From: Paul Förster
Date:
Subject: Re: pg_checksums?