pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Brad Nicholson <bradn@ca.ibm.com>
Cc: Grigory Smolkin <g.smolkin@postgrespro.ru>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Re: Re: Enabling checksums on a streaming replica
Date: Sat, 29 Jun 2019 11:27:09 +0900
Message-ID: <20190629022709.GC2191@paquier.xyz> (raw)
In-Reply-To: <OFC940A082.FAEA8B57-ON85258427.00402394-85258427.0040686A@notes.na.collabserv.com>
References: <OF197FCF62.18B58E9B-ON85258425.00531EC6-85258425.0055585E@notes.na.collabserv.com>
	<92db1a5e-109e-c7b1-504b-7a897ba7d732@postgrespro.ru>
	<OF0F1A53A2.637681AC-ON85258425.00636ACB-85258425.0063A36D@notes.na.collabserv.com>
	<20190628031710.GB1797@paquier.xyz>
	<OFC940A082.FAEA8B57-ON85258427.00402394-85258427.0040686A@notes.na.collabserv.com>

On Fri, Jun 28, 2019 at 07:43:30AM -0400, Brad Nicholson wrote:
> So if all the checksums are being recalculated on the replica, this
> approach should be relatively safe, should it not?

Yep.

> Assuming pg_checksums is doing the right thing (and it looks to me like it
> should be).

The constraint that a cluster needs to be cleanly shut down to be able
to enable checksums with pg_checksums is the actual deal here.  After
that of course comes the WAL retention on the primary or in the WAL
archives that a standby would need again to catch up while it was
offline.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (6+ messages)

Message-ID: <20190629022709.GC2191@paquier.xyz>
Permalink:  ../20190629022709.GC2191@paquier.xyz/
Also on:    postgresql.org/message-id/20190629022709.GC2191@paquier.xyz

 · 

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: michael@paquier.xyz, bradn@ca.ibm.com, g.smolkin@postgrespro.ru
  Subject: Re: Enabling checksums on a streaming replica
  In-Reply-To: <20190629022709.GC2191@paquier.xyz>
  References: <OF197FCF62.18B58E9B-ON85258425.00531EC6-85258425.0055585E@notes.na.collabserv.com> <92db1a5e-109e-c7b1-504b-7a897ba7d732@postgrespro.ru> <OF0F1A53A2.637681AC-ON85258425.00636ACB-85258425.0063A36D@notes.na.collabserv.com> <20190628031710.GB1797@paquier.xyz> <OFC940A082.FAEA8B57-ON85258427.00402394-85258427.0040686A@notes.na.collabserv.com> <20190629022709.GC2191@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