Skip to content
pg_checksums

pg_checksums

pg_checksums : Activate/deactivate/verify checksums in offline Postgres clusters

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
5110
pg_checksums
pg_checksums
1.3
ADMIN
BSD 2-Clause
C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s---r
No
Yes
No
No
yes
no
Relationships
See Also
pg_catcheck
amcheck
pg_surgery
pageinspect
pg_visibility
pgstattuple
pg_repack
pg_squeeze

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXT
PGDG
1.3
18
17
16
15
14
pg_checksums-
RPM
PGDG
1.3
18
17
16
15
14
pg_checksums_$v-
DEB
PGDG
1.3
18
17
16
15
14
postgresql-$v-pg-checksums-
Linux / PGPG18PG17PG16PG15PG14
el8.x86_64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
el8.aarch64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
el9.x86_64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
el9.aarch64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
el10.x86_64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
el10.aarch64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
d12.x86_64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
d12.aarch64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
d13.x86_64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
d13.aarch64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
u22.x86_64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
u22.aarch64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
u24.x86_64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
u24.aarch64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
u26.x86_64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
u26.aarch64
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PGDG 1.3
PackageVersionOSORGSIZEFile URL
pg_checksums_181.3el8.x86_64pgdg47.3 KiBpg_checksums_18-1.3-1PGDG.rhel8.x86_64.rpm
pg_checksums_181.3el8.aarch64pgdg46.8 KiBpg_checksums_18-1.3-1PGDG.rhel8.aarch64.rpm
pg_checksums_181.3el9.x86_64pgdg32.4 KiBpg_checksums_18-1.3-1PGDG.rhel9.x86_64.rpm
pg_checksums_181.3el9.aarch64pgdg39.8 KiBpg_checksums_18-1.3-1PGDG.rhel9.aarch64.rpm
pg_checksums_181.3el10.x86_64pgdg33.2 KiBpg_checksums_18-1.3-1PGDG.rhel10.x86_64.rpm
pg_checksums_181.3el10.aarch64pgdg40.6 KiBpg_checksums_18-1.3-1PGDG.rhel10.aarch64.rpm
postgresql-18-pg-checksums1.3d12.x86_64pgdg36.8 KiBpostgresql-18-pg-checksums_1.3-2.pgdg12+1_amd64.deb
postgresql-18-pg-checksums1.3d12.aarch64pgdg35.5 KiBpostgresql-18-pg-checksums_1.3-2.pgdg12+1_arm64.deb
postgresql-18-pg-checksums1.3d13.x86_64pgdg37.1 KiBpostgresql-18-pg-checksums_1.3-2.pgdg13+1_amd64.deb
postgresql-18-pg-checksums1.3d13.aarch64pgdg35.9 KiBpostgresql-18-pg-checksums_1.3-2.pgdg13+1_arm64.deb
postgresql-18-pg-checksums1.3u22.x86_64pgdg37.9 KiBpostgresql-18-pg-checksums_1.3-2.pgdg22.04+1_amd64.deb
postgresql-18-pg-checksums1.3u22.aarch64pgdg36.3 KiBpostgresql-18-pg-checksums_1.3-2.pgdg22.04+1_arm64.deb
postgresql-18-pg-checksums1.3u24.x86_64pgdg36.8 KiBpostgresql-18-pg-checksums_1.3-2.pgdg24.04+1_amd64.deb
postgresql-18-pg-checksums1.3u24.aarch64pgdg35.8 KiBpostgresql-18-pg-checksums_1.3-2.pgdg24.04+1_arm64.deb
postgresql-18-pg-checksums1.3u26.x86_64pgdg37.3 KiBpostgresql-18-pg-checksums_1.3-2.pgdg26.04+1_amd64.deb
postgresql-18-pg-checksums1.3u26.aarch64pgdg36.2 KiBpostgresql-18-pg-checksums_1.3-2.pgdg26.04+1_arm64.deb

Source

Install

Make sure PGDG repo available:

pig repo add pgdg -u    # add pgdg repo and update cache

Install this extension with pig:

pig install pg_checksums;		# install via package name, for the active PG version

pig install pg_checksums -v 18;   # install for PG 18
pig install pg_checksums -v 17;   # install for PG 17
pig install pg_checksums -v 16;   # install for PG 16
pig install pg_checksums -v 15;   # install for PG 15
pig install pg_checksums -v 14;   # install for PG 14

This extension does not need CREATE EXTENSION DDL command

Usage

pg_checksums: Activate/deactivate/verify checksums in offline Postgres clusters

pg_checksums_ext is a command-line tool (based on PostgreSQL’s built-in pg_checksums) that can verify, activate, or deactivate page-level checksums for a PostgreSQL cluster. It extends the built-in tool with online verification, SIGUSR1 progress toggling, fine-grained progress reporting, and I/O rate limiting.

Verify Checksums (can be done online)

pg_checksums_ext -D /path/to/data --check

Enable Checksums (requires clean shutdown)

pg_checksums_ext -D /path/to/data --enable

Disable Checksums (requires clean shutdown)

pg_checksums_ext -D /path/to/data --disable

Additional Options

  • -D, --pgdata – data directory path
  • --check / --enable / --disable – operation mode
  • --progress – show progress reporting
  • --filenode – check only a specific filenode
  • --no-sync – skip fsync
  • --verbose – verbose output
  • --debug – debug output
  • Send SIGUSR1 to toggle progress reporting during operation
Last updated on