pg_verify_checksums verifies data checksums in a PostgreSQL cluster. The server must be shut down cleanly before running pg_verify_checksums. The exit status is zero if there are no checksum errors, otherwise nonzero. OPTIONS The following command-line options are available: -D directory -...
PostgreSQL允许用户开启block checksum功能,使用pg_verify_checksums工具,可以对整个数据库或指定的数据文件进行checksum校验,确保数据文件逻辑上一致。 pg_verify_checksums 校验数据块一致性 1、停库,目前不支持OPEN状态下的校验。 2、使用pg_verify_checksums校验 pg_verify_checksums verifies data checksumsina PostgreSQL...