pg_checksums checks, enables or disables data
checksums in a
PostgreSQL cluster. The server
must be shut down cleanly before running
-
pg_checksums.
The exit status is zero if there
- are no checksum errors when checking them, and nonzero if at least one
- checksum failure is detected. If enabling or disabling checksums, the
+
pg_checksums.
When verifying checksums, the exit
+ status is zero if there are no checksum errors, and nonzero if at least one
+ checksum failure is detected. When enabling or disabling checksums, the
exit status is nonzero if the operation failed.
- While checking or enabling checksums needs to scan or write every file in
- the cluster, disabling checksums will only update the file
- pg_control.
+ When verifying checksums, every file in the cluster is scanned. When
+ enabling checksums, every file in the cluster is rewritten. Disabling
+ checksums only updates the file pg_control.
If
pg_checksums is aborted or killed while
- enabling or disabling checksums, the cluster will keep the same
- configuration for data checksums as before the operation attempted.
-
pg_checksums can be restarted to
- attempt again the same operation.
+ enabling or disabling checksums, the cluster's data checksum configuration
+ remains unchanged, and
pg_checksums can be
+ re-run to perform the same operation.