Re: Offline enabling/disabling of data checksums
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Michael Banck <michael.banck@credativ.de>
Cc: Sergei Kornilov <sk@zsrv.org>, pgsql-hackers@lists.postgresql.org
Date: 2019-03-13T02:16:21Z
Lists: pgsql-hackers
Attachments
- v3-0001-Add-options-to-enable-and-disable-checksums-in-pg.patch (text/x-diff) patch v3-0001
- v3-0002-Add-option-N-no-sync-to-pg_checksums.patch (text/x-diff) patch v3-0002
On Tue, Mar 12, 2019 at 09:44:03PM +0900, Michael Paquier wrote: > Yes, it does not matter much in practice, but other tools just don't > do that. Note that changing it can be actually annoying for a > backpatch if we don't have the --enable/--disable part, because git is > actually smart enough to detect the file renaming across branches as > far as I tried, but as we are refactoring this code anyway for > --enable and --disable let's just do it, that's cleaner. Okay, please find attached a rebased patch set. I have committed 0001 which adds version checks for the control file, and the renaming part 0002. What remains now is the addition of the new options, and --no-sync. The "return 1" stuff has been switched to exit(1) while on it, and is part of 0003. Now the set of patches is: - 0001, add --enable and --disable. I have tweaked a bit the patch so as "action" is replaced by "mode" which is more consistent with other tools like pg_ctl. pg_indent was also complaining about one of the new enum structures. - 0002, add --no-sync. Thanks, -- 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