From: Grigory Smolkin <g.smolkin@postgrespro.ru>
To: pgsql-general@lists.postgresql.org
Subject: Re: Enabling checksums on a streaming replica
Date: Wed, 26 Jun 2019 19:37:10 +0300
Message-ID: <92db1a5e-109e-c7b1-504b-7a897ba7d732@postgrespro.ru> (raw)
In-Reply-To: <OF197FCF62.18B58E9B-ON85258425.00531EC6-85258425.0055585E@notes.na.collabserv.com>
References: <OF197FCF62.18B58E9B-ON85258425.00531EC6-85258425.0055585E@notes.na.collabserv.com>
Hello!
Very interesting idea, but what about full page writes, that comes from
master?
Can they be a problem?
On 6/26/19 6:32 PM, Brad Nicholson wrote:
>
> I'm wondering about the validity of using the pg_checksums utility to
> enable checksum's on a streaming replication standby, and then
> promoting that standby as a way to enable checksums on existing clusters.
>
> I've tested the process out, and it "works" (by works I mean doesn't
> blow up or log any errors). But this seems far enough outside of
> supported territory that I'm curious what others think.
>
> The process is:
>
> - Primary with checksums off
> - create a streaming replica off that primary
> - stop the secondary
> - enable checksums on the secondary with the pg_checksums utility
> - start the replica
> - promote the replica
>
> I've thrown load at it while the it was replicating from checksums off
> -> checksums on, promoted it, and verified the checksums after with
> pg_checksums.
>
> Any thoughts on this approach?
>
> Thanks,
> Brad
>
--
Grigory Smolkin
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
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: g.smolkin@postgrespro.ru
Subject: Re: Enabling checksums on a streaming replica
In-Reply-To: <92db1a5e-109e-c7b1-504b-7a897ba7d732@postgrespro.ru>
References: <OF197FCF62.18B58E9B-ON85258425.00531EC6-85258425.0055585E@notes.na.collabserv.com> <92db1a5e-109e-c7b1-504b-7a897ba7d732@postgrespro.ru>
* 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