You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function pg_checksums: the logic of processing the test result has been changed
fixed "ERROR: pg_checksums: data checksums validation - Failed"
/usr/lib/postgresql/10/bin/pg_checksums -c -D /tmp/rst/apdb-cluster-test
Checksum operation completed
Files scanned: 1776
Blocks scanned: 1160697
Blocks skipped: 83
Bad checksums: 0
Data checksum version: 1
postgres@smh-backuper:~$ echo $?
1
There are no errors, but the return code is 1.
At the same time, the return code is 0 for version 13:
/usr/lib/postgresql/13/bin/pg_checksums -c -D /tmp/rst/shdb-cluster-test
Checksum operation completed
Files scanned: 3220
Blocks scanned: 236147
Bad checksums: 0
Data checksum version: 1
postgres@smh-backuper:~$ echo $?
0
Now we do not rely on the return code, but explicitly check for the presence of "Bad checksums: 0" as a result of executing the pg_checksums command.
0 commit comments