Re: Offline enabling/disabling of data checksums
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: Magnus Hagander <magnus@hagander.net>, Michael Banck <michael.banck@credativ.de>, Postgres hackers <pgsql-hackers@postgresql.org>
Date: 2018-12-28T01:30:27Z
Lists: pgsql-hackers
On Fri, Dec 28, 2018 at 01:14:05AM +0100, Tomas Vondra wrote: > I'm sorry, but I'm not sure I understand the question. Of course, asking > over at -packagers won't hurt, but my guess is the response will be it's > not a big deal from the packaging perspective. (The previous email had an extra "Would"... Sorry.) Let's ask those folks then. > What do you mean by "control" here? Dealing with checksum failures, or > some additional capabilities? What I am referring to here is the possibility to enable, disable and check checksums for an online cluster. I am not sure what kind of tooling able to do chirurgy at page level would make sense. Once a checksum is corrupted a user knows about a problem, which mainly needs a human lookup. > I'm not sure data checksums are particularly great evidence. For example > with the recent fsync issues, we might have ended with partial writes > (and thus invalid checksums). The OS migh have even told us about the > failure, but we've gracefully ignored it. So I'm afraid data checksums > are not a particularly great proof it's not our fault. Sure, they are not a solution to all problems. Still they give hints before the problem spreads, and sometimes by looking at one corrupted page by yourself one can see if the data fetched from disk comes from Postgres or not (say inspecting the page header with pageinspect, etc.). -- Michael
Commits
-
Reorganize Notes section in documentation of pg_checksums
- a7cc52370b2b 12.0 landed
-
Add option -N/--no-sync to pg_checksums
- e0090c869008 12.0 landed
-
Add options to enable and disable checksums in pg_checksums
- ed308d783790 12.0 landed
-
Refactor more code logic to update the control file
- 8b938d36f744 12.0 landed
-
Rename pg_verify_checksums to pg_checksums
- 6dd263cfaa84 12.0 landed
-
Fix cross-version compatibility checks of pg_verify_checksums
- 501f58359b59 11.3 landed
- c9ae7f704c67 12.0 landed
-
Add routine able to update the control file to src/common/
- ce6afc6823fb 12.0 landed