Re: Offline enabling/disabling of data checksums
Fabien COELHO <coelho@cri.ensmp.fr>
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Michael Paquier <michael@paquier.xyz>
Cc: Michael Banck <michael.banck@credativ.de>,
Postgres hackers <pgsql-hackers@postgresql.org>
Date: 2019-03-17T09:01:20Z
Lists: pgsql-hackers
Attachments
- controlfile-update-1.patch (text/x-diff) patch
Bonjour Michaël-san, > Yes, that would be nice, for now I have focused. For pg_resetwal yes > we could do it easily. Would you like to send a patch? Here is a proposal for "pg_resetwal". The implementation basically removes a lot of copy paste and calls the new update_controlfile function instead. I like removing useless code:-) The reserwal implementation was doing a rm/create cycle, which was leaving a small window for losing the controlfile. Not neat. I do not see the value of *not* fsyncing the control file when writing it, as it is by definition very precious, so I added a fsync. The server side branch uses the backend available "pg_fsync", which complies with server settings there and can do nothing if fsync is disabled. Maybe the two changes could be committed separately. -- Fabien.
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