pg_integrity_checksums
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_integrity_checksums | 2.0.0 | ADMIN | MIT | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5115 | pg_integrity_checksums | No | Yes | No | Yes | No | Yes | - |
| Related | amcheck pg_checksums |
|---|
Former pg_checksums SQL extension, unrelated to the core/PGDG utility. Old/new extensions cannot share a schema; follow MIGRATION.md. Superuser install; relation checks enforce SELECT and reject RLS; database checks require superuser. Logical checksums compare content; physical checksums depend on storage. PG14-18.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 2.0.0 | 1817161514 | pg_integrity_checksums | - |
| RPM | PIGSTY | 2.0.0 | 1817161514 | pg_integrity_checksums_$v | - |
| DEB | PIGSTY | 2.0.0 | 1817161514 | postgresql-$v-pg-integrity-checksums | - |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 2.0.0 el8.x86_64.pg18 : pg_integrity_checksums_18 pg_integrity_checksums_18-2.0.0-1PGSTY.el8.x86_64.rpm
| PIGSTY 2.0.0 el8.x86_64.pg17 : pg_integrity_checksums_17 pg_integrity_checksums_17-2.0.0-1PGSTY.el8.x86_64.rpm
| PIGSTY 2.0.0 el8.x86_64.pg16 : pg_integrity_checksums_16 pg_integrity_checksums_16-2.0.0-1PGSTY.el8.x86_64.rpm
| PIGSTY 2.0.0 el8.x86_64.pg15 : pg_integrity_checksums_15 pg_integrity_checksums_15-2.0.0-1PGSTY.el8.x86_64.rpm
| PIGSTY 2.0.0 el8.x86_64.pg14 : pg_integrity_checksums_14 pg_integrity_checksums_14-2.0.0-1PGSTY.el8.x86_64.rpm
|
| el8.aarch64 | PIGSTY 2.0.0 el8.aarch64.pg18 : pg_integrity_checksums_18 pg_integrity_checksums_18-2.0.0-1PGSTY.el8.aarch64.rpm
| PIGSTY 2.0.0 el8.aarch64.pg17 : pg_integrity_checksums_17 pg_integrity_checksums_17-2.0.0-1PGSTY.el8.aarch64.rpm
| PIGSTY 2.0.0 el8.aarch64.pg16 : pg_integrity_checksums_16 pg_integrity_checksums_16-2.0.0-1PGSTY.el8.aarch64.rpm
| PIGSTY 2.0.0 el8.aarch64.pg15 : pg_integrity_checksums_15 pg_integrity_checksums_15-2.0.0-1PGSTY.el8.aarch64.rpm
| PIGSTY 2.0.0 el8.aarch64.pg14 : pg_integrity_checksums_14 pg_integrity_checksums_14-2.0.0-1PGSTY.el8.aarch64.rpm
|
| el9.x86_64 | PIGSTY 2.0.0 el9.x86_64.pg18 : pg_integrity_checksums_18 pg_integrity_checksums_18-2.0.0-1PGSTY.el9.x86_64.rpm
| PIGSTY 2.0.0 el9.x86_64.pg17 : pg_integrity_checksums_17 pg_integrity_checksums_17-2.0.0-1PGSTY.el9.x86_64.rpm
| PIGSTY 2.0.0 el9.x86_64.pg16 : pg_integrity_checksums_16 pg_integrity_checksums_16-2.0.0-1PGSTY.el9.x86_64.rpm
| PIGSTY 2.0.0 el9.x86_64.pg15 : pg_integrity_checksums_15 pg_integrity_checksums_15-2.0.0-1PGSTY.el9.x86_64.rpm
| PIGSTY 2.0.0 el9.x86_64.pg14 : pg_integrity_checksums_14 pg_integrity_checksums_14-2.0.0-1PGSTY.el9.x86_64.rpm
|
| el9.aarch64 | PIGSTY 2.0.0 el9.aarch64.pg18 : pg_integrity_checksums_18 pg_integrity_checksums_18-2.0.0-1PGSTY.el9.aarch64.rpm
| PIGSTY 2.0.0 el9.aarch64.pg17 : pg_integrity_checksums_17 pg_integrity_checksums_17-2.0.0-1PGSTY.el9.aarch64.rpm
| PIGSTY 2.0.0 el9.aarch64.pg16 : pg_integrity_checksums_16 pg_integrity_checksums_16-2.0.0-1PGSTY.el9.aarch64.rpm
| PIGSTY 2.0.0 el9.aarch64.pg15 : pg_integrity_checksums_15 pg_integrity_checksums_15-2.0.0-1PGSTY.el9.aarch64.rpm
| PIGSTY 2.0.0 el9.aarch64.pg14 : pg_integrity_checksums_14 pg_integrity_checksums_14-2.0.0-1PGSTY.el9.aarch64.rpm
|
| el10.x86_64 | PIGSTY 2.0.0 el10.x86_64.pg18 : pg_integrity_checksums_18 pg_integrity_checksums_18-2.0.0-1PGSTY.el10.x86_64.rpm
| PIGSTY 2.0.0 el10.x86_64.pg17 : pg_integrity_checksums_17 pg_integrity_checksums_17-2.0.0-1PGSTY.el10.x86_64.rpm
| PIGSTY 2.0.0 el10.x86_64.pg16 : pg_integrity_checksums_16 pg_integrity_checksums_16-2.0.0-1PGSTY.el10.x86_64.rpm
| PIGSTY 2.0.0 el10.x86_64.pg15 : pg_integrity_checksums_15 pg_integrity_checksums_15-2.0.0-1PGSTY.el10.x86_64.rpm
| PIGSTY 2.0.0 el10.x86_64.pg14 : pg_integrity_checksums_14 pg_integrity_checksums_14-2.0.0-1PGSTY.el10.x86_64.rpm
|
| el10.aarch64 | PIGSTY 2.0.0 el10.aarch64.pg18 : pg_integrity_checksums_18 pg_integrity_checksums_18-2.0.0-1PGSTY.el10.aarch64.rpm
| PIGSTY 2.0.0 el10.aarch64.pg17 : pg_integrity_checksums_17 pg_integrity_checksums_17-2.0.0-1PGSTY.el10.aarch64.rpm
| PIGSTY 2.0.0 el10.aarch64.pg16 : pg_integrity_checksums_16 pg_integrity_checksums_16-2.0.0-1PGSTY.el10.aarch64.rpm
| PIGSTY 2.0.0 el10.aarch64.pg15 : pg_integrity_checksums_15 pg_integrity_checksums_15-2.0.0-1PGSTY.el10.aarch64.rpm
| PIGSTY 2.0.0 el10.aarch64.pg14 : pg_integrity_checksums_14 pg_integrity_checksums_14-2.0.0-1PGSTY.el10.aarch64.rpm
|
| d12.x86_64 | PIGSTY 2.0.0 d12.x86_64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_amd64.deb
| PIGSTY 2.0.0 d12.x86_64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_amd64.deb
| PIGSTY 2.0.0 d12.x86_64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_amd64.deb
| PIGSTY 2.0.0 d12.x86_64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_amd64.deb
| PIGSTY 2.0.0 d12.x86_64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_amd64.deb
|
| d12.aarch64 | PIGSTY 2.0.0 d12.aarch64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_arm64.deb
| PIGSTY 2.0.0 d12.aarch64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_arm64.deb
| PIGSTY 2.0.0 d12.aarch64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_arm64.deb
| PIGSTY 2.0.0 d12.aarch64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_arm64.deb
| PIGSTY 2.0.0 d12.aarch64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~bookworm_arm64.deb
|
| d13.x86_64 | PIGSTY 2.0.0 d13.x86_64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~trixie_amd64.deb
| PIGSTY 2.0.0 d13.x86_64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~trixie_amd64.deb
| PIGSTY 2.0.0 d13.x86_64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~trixie_amd64.deb
| PIGSTY 2.0.0 d13.x86_64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~trixie_amd64.deb
| PIGSTY 2.0.0 d13.x86_64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~trixie_amd64.deb
|
| d13.aarch64 | PIGSTY 2.0.0 d13.aarch64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~trixie_arm64.deb
| PIGSTY 2.0.0 d13.aarch64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~trixie_arm64.deb
| PIGSTY 2.0.0 d13.aarch64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~trixie_arm64.deb
| PIGSTY 2.0.0 d13.aarch64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~trixie_arm64.deb
| PIGSTY 2.0.0 d13.aarch64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~trixie_arm64.deb
|
| u22.x86_64 | PIGSTY 2.0.0 u22.x86_64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~jammy_amd64.deb
| PIGSTY 2.0.0 u22.x86_64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~jammy_amd64.deb
| PIGSTY 2.0.0 u22.x86_64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~jammy_amd64.deb
| PIGSTY 2.0.0 u22.x86_64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~jammy_amd64.deb
| PIGSTY 2.0.0 u22.x86_64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~jammy_amd64.deb
|
| u22.aarch64 | PIGSTY 2.0.0 u22.aarch64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~jammy_arm64.deb
| PIGSTY 2.0.0 u22.aarch64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~jammy_arm64.deb
| PIGSTY 2.0.0 u22.aarch64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~jammy_arm64.deb
| PIGSTY 2.0.0 u22.aarch64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~jammy_arm64.deb
| PIGSTY 2.0.0 u22.aarch64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~jammy_arm64.deb
|
| u24.x86_64 | PIGSTY 2.0.0 u24.x86_64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~noble_amd64.deb
| PIGSTY 2.0.0 u24.x86_64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~noble_amd64.deb
| PIGSTY 2.0.0 u24.x86_64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~noble_amd64.deb
| PIGSTY 2.0.0 u24.x86_64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~noble_amd64.deb
| PIGSTY 2.0.0 u24.x86_64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~noble_amd64.deb
|
| u24.aarch64 | PIGSTY 2.0.0 u24.aarch64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~noble_arm64.deb
| PIGSTY 2.0.0 u24.aarch64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~noble_arm64.deb
| PIGSTY 2.0.0 u24.aarch64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~noble_arm64.deb
| PIGSTY 2.0.0 u24.aarch64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~noble_arm64.deb
| PIGSTY 2.0.0 u24.aarch64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~noble_arm64.deb
|
| u26.x86_64 | PIGSTY 2.0.0 u26.x86_64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~resolute_amd64.deb
| PIGSTY 2.0.0 u26.x86_64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~resolute_amd64.deb
| PIGSTY 2.0.0 u26.x86_64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~resolute_amd64.deb
| PIGSTY 2.0.0 u26.x86_64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~resolute_amd64.deb
| PIGSTY 2.0.0 u26.x86_64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~resolute_amd64.deb
|
| u26.aarch64 | PIGSTY 2.0.0 u26.aarch64.pg18 : postgresql-18-pg-integrity-checksums postgresql-18-pg-integrity-checksums_2.0.0-1PGSTY~resolute_arm64.deb
| PIGSTY 2.0.0 u26.aarch64.pg17 : postgresql-17-pg-integrity-checksums postgresql-17-pg-integrity-checksums_2.0.0-1PGSTY~resolute_arm64.deb
| PIGSTY 2.0.0 u26.aarch64.pg16 : postgresql-16-pg-integrity-checksums postgresql-16-pg-integrity-checksums_2.0.0-1PGSTY~resolute_arm64.deb
| PIGSTY 2.0.0 u26.aarch64.pg15 : postgresql-15-pg-integrity-checksums postgresql-15-pg-integrity-checksums_2.0.0-1PGSTY~resolute_arm64.deb
| PIGSTY 2.0.0 u26.aarch64.pg14 : postgresql-14-pg-integrity-checksums postgresql-14-pg-integrity-checksums_2.0.0-1PGSTY~resolute_arm64.deb
|
Build
You can build the RPM / DEB packages for pg_integrity_checksums using pig build:
Install
You can install pg_integrity_checksums directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
Sources:
pg_integrity_checksums computes physical and logical checksums for PostgreSQL pages, cells, tuples, tables, indexes and databases. It is a C extension for PostgreSQL 12–18 and reads relation storage directly, so installation and database-wide checks require a superuser.
Install and migrate
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:
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.
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 SELECT on the relation and reject row-level-security protected relations because direct storage scans cannot apply RLS. 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, but physical baselines must be recomputed after the changes described in the release notes.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)