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: Postgres hackers <pgsql-hackers@postgresql.org>
Date: 2018-12-23T00:41:03Z
Lists: pgsql-hackers
On Sat, Dec 22, 2018 at 02:42:55PM +0100, Michael Banck wrote: > On Sat, Dec 22, 2018 at 08:28:34AM +0900, Michael Paquier wrote: >> There are two discussion points which deserve attention here: >> 1) Do we want to rename pg_verify_checksums to something else, like >> pg_checksums. I like a lot if we would do a simple renaming of the >> tool, which should be the first step taken. > > I am for it, but don't mind whether it's before or afterwards, your > call. Doing the renaming after would be a bit weird logically, as we would finish with a point in time in the tree where pg_verify_checksums is able to do something else than just verifying checksums. > Even though my fork has the separate switches, I like the --action one. > On the other hand, it is a bit more typing as you always have to spell > out the action (is there precendent of accepting also incomplete option > arguments like 'v', 'e', 'd'?). Yes, there is a bit of that in psql for example for formats. Not sure that we should take this road for a checksumming tool though. If a new option is added which takes the first letter then we would have incompatibility issues. That's unlikely to happen, still that feels uneasy. -- 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