Re: Gotchas about pg_verify_checksums - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Gotchas about pg_verify_checksums
Date
Msg-id CAH2-Wz=vSwK03Hw3M49T1x+w-1rjq=WwVO3H3P8uyW1BfjVPYw@mail.gmail.com
Whole thread Raw
In response to Re: Gotchas about pg_verify_checksums  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: Gotchas about pg_verify_checksums
List pgsql-hackers
On Tue, Apr 10, 2018 at 1:27 PM, Daniel Gustafsson <daniel@yesql.se> wrote:
>> On 10 Apr 2018, at 06:21, Michael Paquier <michael@paquier.xyz> wrote:
>> 1) The documentation states that the cluster needs to be offline.
>> Doesn't this imply that the cluster can also be forcibly killed?  It
>> seems to me that the documentation ought to say that the cluster needs
>> to be shut down cleanly instead.  Mentioning that only in the notes of
>> the documentation would be enough in my opinion.
>
> Does it really imply that?  Either way, the tool could potentially be useful
> for debugging a broken cluster so I’m not sure that stating it requires a
> cleanly shut down server is useful.  That being said, you’re absolutely right
> that the current wording isn’t great, I think “The cluster must be shut down
> before running..” would be better.

I agree with Michael -- shutting down the server using immediate mode
could lead to torn pages, that crash recovery will need to repair at a
later stage. I think that some strong caveats around this are required
in the pg_verify_checksums docs, at a minimum.

--
Peter Geoghegan


pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: pgsql: Validate page level checksums in base backups
Next
From: David Steele
Date:
Subject: Re: pgsql: Validate page level checksums in base backups