From: Paul Förster <paul.foerster@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: " <pgsql-general@postgresql.org>
Subject: Re: pg_checksums?
Date: Fri, 27 Oct 2023 23:37:24 +0200
Message-ID: <AB7D1C87-F9E6-4068-9AA9-8591C82CF9CC@gmail.com> (raw)
In-Reply-To: <ZTwpx1sCIu-4EgRH@momjian.us>
References: <22272207-E6E5-4DD5-9BD4-5F6B647E2C3B@gmail.com>
<0D18D31E-EF52-434D-875C-08BEC8DDD553@yesql.se>
<ZTwpx1sCIu-4EgRH@momjian.us>
Hi Bruce, hi Daniel,
> On Oct 27, 2023, at 23:21, Bruce Momjian <bruce@momjian.us> wrote:
>
> On Fri, Oct 27, 2023 at 10:45:16PM +0200, Daniel Gustafsson wrote:
>>> On 27 Oct 2023, at 20:34, Paul Förster <paul.foerster@gmail.com> wrote:
>>
>>> a) why isn't it possible to enable checksumming while a database cluster is up?
>>
>> It is surprisingly complicated to enable checksums on a live cluster, a patch
>> was submitted a while back but ultimately never made it into postgres. The
>> below threads may shine some light on the problem:
>>
>> https://www.postgresql.org/message-id/flat/CABUevEx8KWhZE_XkZQpzEkZypZmBp3GbM9W90JLp%3D-7OJWBbcg%40m...
>> https://www.postgresql.org/message-id/flat/560A2239-5DE2-4B9C-92BC-878C6822F47C%40yesql.se#10b665b21...
>
> Yeah, it was a big surprise that this feature was so hard to implement
> because we have _no_ infrastructure for having multiple data layouts
> active in a live system. The discussion eventually made that clear.
>
> If we have more features that need this kind of dynamic ability, we
> might revisit this feature too.
Ok, I see.
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?
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, bruce@momjian.us, daniel@yesql.se
Subject: Re: pg_checksums?
In-Reply-To: <AB7D1C87-F9E6-4068-9AA9-8591C82CF9CC@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>
* 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