Skip to content

pg_integrity_checksums

Physical and logical checksums for PostgreSQL pages, rows, tables, indexes and databases.

pg_integrity_checksums : Physical and logical checksums for PostgreSQL pages, rows, tables, indexes and databases.

Overview

ID Extension Package Version Category License Language
5115 pg_integrity_checksums pg_integrity_checksums 2.9.1 ADMIN MIT C
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--s-d-r No Yes No Yes yes no
Relationships
See Also amcheck pg_checksums
2.2.0 adds FNV-1a 64-bit overloads; superuser; recompute affected baselines.

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT PIGSTY 2.9.1 19 18 17 16 15 pg_integrity_checksums -
RPM PIGSTY 2.9.1 19 18 17 16 15 pg_integrity_checksums_$v -
DEB PIGSTY 2.9.1 19 18 17 16 15 postgresql-$v-pg-integrity-checksums -
Linux / PG PG19 PG18 PG17 PG16 PG15
el8.x86_64 N/A PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
el8.aarch64 N/A PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
el9.x86_64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
el9.aarch64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
el10.x86_64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
el10.aarch64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
d12.x86_64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
d12.aarch64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
d13.x86_64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
d13.aarch64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
u22.x86_64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
u22.aarch64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
u24.x86_64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
u24.aarch64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
u26.x86_64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
u26.aarch64 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1 PIGSTY 2.9.1
Package Version OS ORG SIZE File URL
pg_integrity_checksums_19 2.9.1 el9.x86_64 pigsty 212.5 KiB pg_integrity_checksums_19-2.9.1-1PGSTY.el9.x86_64.rpm
pg_integrity_checksums_19 2.9.1 el9.aarch64 pigsty 208.6 KiB pg_integrity_checksums_19-2.9.1-1PGSTY.el9.aarch64.rpm
pg_integrity_checksums_19 2.9.1 el10.x86_64 pigsty 214.5 KiB pg_integrity_checksums_19-2.9.1-1PGSTY.el10.x86_64.rpm
pg_integrity_checksums_19 2.9.1 el10.aarch64 pigsty 213.0 KiB pg_integrity_checksums_19-2.9.1-1PGSTY.el10.aarch64.rpm
postgresql-19-pg-integrity-checksums 2.9.1 d12.x86_64 pigsty 192.6 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_amd64.deb
postgresql-19-pg-integrity-checksums 2.9.1 d12.aarch64 pigsty 188.3 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_arm64.deb
postgresql-19-pg-integrity-checksums 2.9.1 d13.x86_64 pigsty 192.7 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~trixie_amd64.deb
postgresql-19-pg-integrity-checksums 2.9.1 d13.aarch64 pigsty 188.6 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~trixie_arm64.deb
postgresql-19-pg-integrity-checksums 2.9.1 u22.x86_64 pigsty 207.4 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~jammy_amd64.deb
postgresql-19-pg-integrity-checksums 2.9.1 u22.aarch64 pigsty 205.9 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~jammy_arm64.deb
postgresql-19-pg-integrity-checksums 2.9.1 u24.x86_64 pigsty 198.9 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~noble_amd64.deb
postgresql-19-pg-integrity-checksums 2.9.1 u24.aarch64 pigsty 198.3 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~noble_arm64.deb
postgresql-19-pg-integrity-checksums 2.9.1 u26.x86_64 pigsty 201.1 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~resolute_amd64.deb
postgresql-19-pg-integrity-checksums 2.9.1 u26.aarch64 pigsty 200.5 KiB postgresql-19-pg-integrity-checksums_2.9.1-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_integrity_checksums_18 2.9.1 el8.x86_64 pigsty 211.6 KiB pg_integrity_checksums_18-2.9.1-1PGSTY.el8.x86_64.rpm
pg_integrity_checksums_18 2.2.0 el8.x86_64 pigsty 109.3 KiB pg_integrity_checksums_18-2.2.0-1PGSTY.el8.x86_64.rpm
pg_integrity_checksums_18 2.9.1 el8.aarch64 pigsty 205.7 KiB pg_integrity_checksums_18-2.9.1-1PGSTY.el8.aarch64.rpm
pg_integrity_checksums_18 2.2.0 el8.aarch64 pigsty 106.6 KiB pg_integrity_checksums_18-2.2.0-1PGSTY.el8.aarch64.rpm
pg_integrity_checksums_18 2.9.1 el9.x86_64 pigsty 212.5 KiB pg_integrity_checksums_18-2.9.1-1PGSTY.el9.x86_64.rpm
pg_integrity_checksums_18 2.2.0 el9.x86_64 pigsty 113.8 KiB pg_integrity_checksums_18-2.2.0-1PGSTY.el9.x86_64.rpm
pg_integrity_checksums_18 2.9.1 el9.aarch64 pigsty 208.5 KiB pg_integrity_checksums_18-2.9.1-1PGSTY.el9.aarch64.rpm
pg_integrity_checksums_18 2.2.0 el9.aarch64 pigsty 111.7 KiB pg_integrity_checksums_18-2.2.0-1PGSTY.el9.aarch64.rpm
pg_integrity_checksums_18 2.9.1 el10.x86_64 pigsty 214.4 KiB pg_integrity_checksums_18-2.9.1-1PGSTY.el10.x86_64.rpm
pg_integrity_checksums_18 2.2.0 el10.x86_64 pigsty 114.5 KiB pg_integrity_checksums_18-2.2.0-1PGSTY.el10.x86_64.rpm
pg_integrity_checksums_18 2.9.1 el10.aarch64 pigsty 212.9 KiB pg_integrity_checksums_18-2.9.1-1PGSTY.el10.aarch64.rpm
pg_integrity_checksums_18 2.2.0 el10.aarch64 pigsty 112.2 KiB pg_integrity_checksums_18-2.2.0-1PGSTY.el10.aarch64.rpm
postgresql-18-pg-integrity-checksums 2.9.1 d12.x86_64 pigsty 192.4 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_amd64.deb
postgresql-18-pg-integrity-checksums 2.9.1 d12.aarch64 pigsty 188.5 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_arm64.deb
postgresql-18-pg-integrity-checksums 2.9.1 d13.x86_64 pigsty 192.4 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~trixie_amd64.deb
postgresql-18-pg-integrity-checksums 2.9.1 d13.aarch64 pigsty 188.7 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~trixie_arm64.deb
postgresql-18-pg-integrity-checksums 2.9.1 u22.x86_64 pigsty 207.4 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~jammy_amd64.deb
postgresql-18-pg-integrity-checksums 2.9.1 u22.aarch64 pigsty 205.9 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~jammy_arm64.deb
postgresql-18-pg-integrity-checksums 2.9.1 u24.x86_64 pigsty 198.5 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~noble_amd64.deb
postgresql-18-pg-integrity-checksums 2.9.1 u24.aarch64 pigsty 198.2 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~noble_arm64.deb
postgresql-18-pg-integrity-checksums 2.9.1 u26.x86_64 pigsty 200.9 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~resolute_amd64.deb
postgresql-18-pg-integrity-checksums 2.9.1 u26.aarch64 pigsty 200.5 KiB postgresql-18-pg-integrity-checksums_2.9.1-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_integrity_checksums_17 2.9.1 el8.x86_64 pigsty 211.2 KiB pg_integrity_checksums_17-2.9.1-1PGSTY.el8.x86_64.rpm
pg_integrity_checksums_17 2.2.0 el8.x86_64 pigsty 109.1 KiB pg_integrity_checksums_17-2.2.0-1PGSTY.el8.x86_64.rpm
pg_integrity_checksums_17 2.9.1 el8.aarch64 pigsty 205.4 KiB pg_integrity_checksums_17-2.9.1-1PGSTY.el8.aarch64.rpm
pg_integrity_checksums_17 2.2.0 el8.aarch64 pigsty 106.5 KiB pg_integrity_checksums_17-2.2.0-1PGSTY.el8.aarch64.rpm
pg_integrity_checksums_17 2.9.1 el9.x86_64 pigsty 209.6 KiB pg_integrity_checksums_17-2.9.1-1PGSTY.el9.x86_64.rpm
pg_integrity_checksums_17 2.2.0 el9.x86_64 pigsty 113.4 KiB pg_integrity_checksums_17-2.2.0-1PGSTY.el9.x86_64.rpm
pg_integrity_checksums_17 2.9.1 el9.aarch64 pigsty 208.0 KiB pg_integrity_checksums_17-2.9.1-1PGSTY.el9.aarch64.rpm
pg_integrity_checksums_17 2.2.0 el9.aarch64 pigsty 111.5 KiB pg_integrity_checksums_17-2.2.0-1PGSTY.el9.aarch64.rpm
pg_integrity_checksums_17 2.9.1 el10.x86_64 pigsty 214.0 KiB pg_integrity_checksums_17-2.9.1-1PGSTY.el10.x86_64.rpm
pg_integrity_checksums_17 2.2.0 el10.x86_64 pigsty 114.3 KiB pg_integrity_checksums_17-2.2.0-1PGSTY.el10.x86_64.rpm
pg_integrity_checksums_17 2.9.1 el10.aarch64 pigsty 212.4 KiB pg_integrity_checksums_17-2.9.1-1PGSTY.el10.aarch64.rpm
pg_integrity_checksums_17 2.2.0 el10.aarch64 pigsty 112.1 KiB pg_integrity_checksums_17-2.2.0-1PGSTY.el10.aarch64.rpm
postgresql-17-pg-integrity-checksums 2.9.1 d12.x86_64 pigsty 191.8 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_amd64.deb
postgresql-17-pg-integrity-checksums 2.9.1 d12.aarch64 pigsty 187.9 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_arm64.deb
postgresql-17-pg-integrity-checksums 2.9.1 d13.x86_64 pigsty 192.1 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~trixie_amd64.deb
postgresql-17-pg-integrity-checksums 2.9.1 d13.aarch64 pigsty 188.4 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~trixie_arm64.deb
postgresql-17-pg-integrity-checksums 2.9.1 u22.x86_64 pigsty 244.8 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~jammy_amd64.deb
postgresql-17-pg-integrity-checksums 2.9.1 u22.aarch64 pigsty 243.4 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~jammy_arm64.deb
postgresql-17-pg-integrity-checksums 2.9.1 u24.x86_64 pigsty 198.1 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~noble_amd64.deb
postgresql-17-pg-integrity-checksums 2.9.1 u24.aarch64 pigsty 197.9 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~noble_arm64.deb
postgresql-17-pg-integrity-checksums 2.9.1 u26.x86_64 pigsty 200.8 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~resolute_amd64.deb
postgresql-17-pg-integrity-checksums 2.9.1 u26.aarch64 pigsty 200.1 KiB postgresql-17-pg-integrity-checksums_2.9.1-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_integrity_checksums_16 2.9.1 el8.x86_64 pigsty 211.6 KiB pg_integrity_checksums_16-2.9.1-1PGSTY.el8.x86_64.rpm
pg_integrity_checksums_16 2.2.0 el8.x86_64 pigsty 110.0 KiB pg_integrity_checksums_16-2.2.0-1PGSTY.el8.x86_64.rpm
pg_integrity_checksums_16 2.9.1 el8.aarch64 pigsty 206.1 KiB pg_integrity_checksums_16-2.9.1-1PGSTY.el8.aarch64.rpm
pg_integrity_checksums_16 2.2.0 el8.aarch64 pigsty 107.1 KiB pg_integrity_checksums_16-2.2.0-1PGSTY.el8.aarch64.rpm
pg_integrity_checksums_16 2.9.1 el9.x86_64 pigsty 210.2 KiB pg_integrity_checksums_16-2.9.1-1PGSTY.el9.x86_64.rpm
pg_integrity_checksums_16 2.2.0 el9.x86_64 pigsty 114.2 KiB pg_integrity_checksums_16-2.2.0-1PGSTY.el9.x86_64.rpm
pg_integrity_checksums_16 2.9.1 el9.aarch64 pigsty 208.6 KiB pg_integrity_checksums_16-2.9.1-1PGSTY.el9.aarch64.rpm
pg_integrity_checksums_16 2.2.0 el9.aarch64 pigsty 112.0 KiB pg_integrity_checksums_16-2.2.0-1PGSTY.el9.aarch64.rpm
pg_integrity_checksums_16 2.9.1 el10.x86_64 pigsty 214.2 KiB pg_integrity_checksums_16-2.9.1-1PGSTY.el10.x86_64.rpm
pg_integrity_checksums_16 2.2.0 el10.x86_64 pigsty 115.0 KiB pg_integrity_checksums_16-2.2.0-1PGSTY.el10.x86_64.rpm
pg_integrity_checksums_16 2.9.1 el10.aarch64 pigsty 213.1 KiB pg_integrity_checksums_16-2.9.1-1PGSTY.el10.aarch64.rpm
pg_integrity_checksums_16 2.2.0 el10.aarch64 pigsty 112.8 KiB pg_integrity_checksums_16-2.2.0-1PGSTY.el10.aarch64.rpm
postgresql-16-pg-integrity-checksums 2.9.1 d12.x86_64 pigsty 192.4 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_amd64.deb
postgresql-16-pg-integrity-checksums 2.9.1 d12.aarch64 pigsty 188.7 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_arm64.deb
postgresql-16-pg-integrity-checksums 2.9.1 d13.x86_64 pigsty 192.5 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~trixie_amd64.deb
postgresql-16-pg-integrity-checksums 2.9.1 d13.aarch64 pigsty 188.8 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~trixie_arm64.deb
postgresql-16-pg-integrity-checksums 2.9.1 u22.x86_64 pigsty 240.7 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~jammy_amd64.deb
postgresql-16-pg-integrity-checksums 2.9.1 u22.aarch64 pigsty 239.6 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~jammy_arm64.deb
postgresql-16-pg-integrity-checksums 2.9.1 u24.x86_64 pigsty 198.4 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~noble_amd64.deb
postgresql-16-pg-integrity-checksums 2.9.1 u24.aarch64 pigsty 198.5 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~noble_arm64.deb
postgresql-16-pg-integrity-checksums 2.9.1 u26.x86_64 pigsty 201.0 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~resolute_amd64.deb
postgresql-16-pg-integrity-checksums 2.9.1 u26.aarch64 pigsty 201.0 KiB postgresql-16-pg-integrity-checksums_2.9.1-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_integrity_checksums_15 2.9.1 el8.x86_64 pigsty 211.3 KiB pg_integrity_checksums_15-2.9.1-1PGSTY.el8.x86_64.rpm
pg_integrity_checksums_15 2.2.0 el8.x86_64 pigsty 109.7 KiB pg_integrity_checksums_15-2.2.0-1PGSTY.el8.x86_64.rpm
pg_integrity_checksums_15 2.9.1 el8.aarch64 pigsty 205.4 KiB pg_integrity_checksums_15-2.9.1-1PGSTY.el8.aarch64.rpm
pg_integrity_checksums_15 2.2.0 el8.aarch64 pigsty 106.8 KiB pg_integrity_checksums_15-2.2.0-1PGSTY.el8.aarch64.rpm
pg_integrity_checksums_15 2.9.1 el9.x86_64 pigsty 211.6 KiB pg_integrity_checksums_15-2.9.1-1PGSTY.el9.x86_64.rpm
pg_integrity_checksums_15 2.2.0 el9.x86_64 pigsty 113.8 KiB pg_integrity_checksums_15-2.2.0-1PGSTY.el9.x86_64.rpm
pg_integrity_checksums_15 2.9.1 el9.aarch64 pigsty 210.4 KiB pg_integrity_checksums_15-2.9.1-1PGSTY.el9.aarch64.rpm
pg_integrity_checksums_15 2.2.0 el9.aarch64 pigsty 111.8 KiB pg_integrity_checksums_15-2.2.0-1PGSTY.el9.aarch64.rpm
pg_integrity_checksums_15 2.9.1 el10.x86_64 pigsty 214.4 KiB pg_integrity_checksums_15-2.9.1-1PGSTY.el10.x86_64.rpm
pg_integrity_checksums_15 2.2.0 el10.x86_64 pigsty 115.0 KiB pg_integrity_checksums_15-2.2.0-1PGSTY.el10.x86_64.rpm
pg_integrity_checksums_15 2.9.1 el10.aarch64 pigsty 212.3 KiB pg_integrity_checksums_15-2.9.1-1PGSTY.el10.aarch64.rpm
pg_integrity_checksums_15 2.2.0 el10.aarch64 pigsty 112.3 KiB pg_integrity_checksums_15-2.2.0-1PGSTY.el10.aarch64.rpm
postgresql-15-pg-integrity-checksums 2.9.1 d12.x86_64 pigsty 193.4 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_amd64.deb
postgresql-15-pg-integrity-checksums 2.9.1 d12.aarch64 pigsty 189.5 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~bookworm_arm64.deb
postgresql-15-pg-integrity-checksums 2.9.1 d13.x86_64 pigsty 193.3 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~trixie_amd64.deb
postgresql-15-pg-integrity-checksums 2.9.1 d13.aarch64 pigsty 189.6 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~trixie_arm64.deb
postgresql-15-pg-integrity-checksums 2.9.1 u22.x86_64 pigsty 243.0 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~jammy_amd64.deb
postgresql-15-pg-integrity-checksums 2.9.1 u22.aarch64 pigsty 242.4 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~jammy_arm64.deb
postgresql-15-pg-integrity-checksums 2.9.1 u24.x86_64 pigsty 200.8 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~noble_amd64.deb
postgresql-15-pg-integrity-checksums 2.9.1 u24.aarch64 pigsty 200.4 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~noble_arm64.deb
postgresql-15-pg-integrity-checksums 2.9.1 u26.x86_64 pigsty 201.0 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~resolute_amd64.deb
postgresql-15-pg-integrity-checksums 2.9.1 u26.aarch64 pigsty 201.2 KiB postgresql-15-pg-integrity-checksums_2.9.1-1PGSTY~resolute_arm64.deb

Source

github.com/VictorNagibator/pg_integrity_checksums

pig build pkg pg_integrity_checksums;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

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

pig install pg_integrity_checksums -v 19;   # install for PG 19
pig install pg_integrity_checksums -v 18;   # install for PG 18
pig install pg_integrity_checksums -v 17;   # install for PG 17
pig install pg_integrity_checksums -v 16;   # install for PG 16
pig install pg_integrity_checksums -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION pg_integrity_checksums;

Usage

Sources:

pg_integrity_checksums computes physical and logical checksums for PostgreSQL pages, cells, tuples, tables, indexes and databases. This C extension supports PostgreSQL 12–19 upstream; the catalog’s Pigsty packages target PostgreSQL 14–18. Installation and database-wide checks require a superuser.

Install and migrate

CREATE EXTENSION pg_integrity_checksums;

Version 2.3.0 and page verification

Version 2.3.0 adds pg_page_checksum_status(regclass, integer), which compares a page’s calculated 16-bit checksum with its stored pd_checksum. The following checks remain available after the upgrade:

SHOW data_checksums;
SELECT pg_page_checksum_status('public.orders'::regclass, 0);

The relation must exist and contain the requested block. Results are ok for a match, mismatch for a difference, new for an uninitialized page, or checksums_disabled when stored page checksums are disabled. Stored-page verification requires data_checksums = on; an invalid relation or block raises an error.

pg_page_checksum() only calculates PostgreSQL’s 16-bit page checksum; it does not compare the stored value. Its result of zero can mean an uninitialized page or a calculated zero, so zero alone does not establish validity. The status function reads relation storage directly and reports the page it reads, rather than a persistent guarantee about later writes.

The FNV-1a 32/64-bit overloads introduced in 2.2.0 still return raw bytea digests alongside the legacy 32-bit SQL API. They are separate from PostgreSQL’s 16-bit page-checksum format. Changing the selected algorithm or overload requires a matching baseline; the 2.3.0 page-status addition does not itself require recomputing all existing baselines.

Migration from the old extension name

Version 2.0.0 is the renamed continuation of the earlier pg_checksums extension. PostgreSQL has no ALTER EXTENSION ... RENAME; review dependent objects, drop the old extension, create the new one, and change the GUC prefix before using the new name:

DROP EXTENSION pg_checksums;
CREATE EXTENSION pg_integrity_checksums;
SET pg_integrity_checksums.workers = 4;
SET pg_integrity_checksums.strict = on;

The old and new names cannot coexist because they define the same SQL functions. The unrelated core pg_checksums utility is a separate program.

Checksum levels

Use logical checksums for content comparison and physical checksums for storage integrity. Logical table checksums do not require a primary key, preserve duplicate rows, and exclude relation and tuple identifiers. Logical index checksums are derived from visible table rows and the index definition, so they are stable across VACUUM, CLUSTER and REINDEX.

SELECT pg_table_logical_checksum('public.orders'::regclass);
SELECT pg_index_logical_checksum('public.orders_pkey'::regclass);
SELECT pg_database_logical_checksum(false, true);

Physical checksums include storage details and can change after VACUUM FULL, CLUSTER, REINDEX or other physical rewrites. Use the page, tuple and table physical functions when those changes are relevant to the integrity baseline.

Privileges and maintenance

Relation-level functions require table-level SELECT and reject row-level-security protected relations because direct storage scans cannot apply RLS; column-only grants are insufficient. Database-level functions are superuser-only. pg_integrity_checksums.workers controls parallel scans; pg_integrity_checksums.strict makes database scans fail when a relation cannot be checked instead of skipping it. The extension does not require shared preload. Preserve a known-good baseline for the same algorithm and compatible schema, and account for physical rewrites when comparing physical checksums. These checksums are not cryptographic authentication.

Upgrade and baseline changes in 2.7.0

Install matching files, reconnect and apply the SQL upgrade:

ALTER EXTENSION pg_integrity_checksums UPDATE TO '2.7.0';
SHOW pg_integrity_checksums.strict;

Database-level logical checksums now include qualified relation names, so every database logical baseline changes even if row contents do not. Some physical index baselines also change after index metadata masking was corrected. Recompute and review these baselines; physical checksums are still sensitive to real storage changes, including row locks and rolled-back writes. A checksum difference alone does not establish data corruption.

Tuple and cell checksums now check MVCC visibility and return NULL for invisible rows. Index expressions execute as the table owner in a restricted context, and serializable scans take the required conflict locks. Page-status checks retry disk mismatches; a relation dropped during a database scan is skipped with NOTICE even in strict mode. Other unreadable relations still follow pg_integrity_checksums.strict, which defaults to on. These semantics differ from the earlier 2.6.0 masking and baseline rules.

2.9.0 Algorithms, Sequences and Baselines

ALTER EXTENSION pg_integrity_checksums UPDATE TO '2.9.0';

Version 2.9.0 adds crc32c and xxh3 to the generic algorithm functions and extends parallel workers to pg_table_bucket_checksums(). New sequence logical checksums compare a sequence’s definition with last_value and is_called; new relation-page status functions verify all pages and forks in one call.

When include_system = false, database logical and physical checksums now exclude information_schema as well as pg_catalog. Because information_schema content varies by PostgreSQL version, every non-system database checksum from an older release changes after this correction: recompute and replace those stored baselines. Table, index and sequence checksum values are not changed by this fix, and CLI baselines already excluded information_schema.

2.9.1 Scan Changes

On PostgreSQL 17+, table, index, bucket and database scans use read streams; PostgreSQL 18 can use asynchronous I/O. Parallel workers process larger ranges. Version 2.9.1 does not change checksum values. Install the matching library and apply ALTER EXTENSION pg_integrity_checksums UPDATE TO '2.9.1'; the older 2.9.0 information_schema exclusion still requires replacing affected non-system database baselines.

Table reader