pg_checksums
Activate/deactivate/verify checksums in offline Postgres clusters
Repository
credativ/pg_checksums
https://github.com/credativ/pg_checksums
Source
pg_checksums-1.3.tar.gz
pg_checksums-1.3.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_checksums | 1.3 | ADMIN | BSD 2-Clause | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5110 | pg_checksums | No | Yes | No | No | No | Yes | - |
| Related | pg_catcheck amcheck pg_surgery pageinspect pg_visibility pgstattuple pg_repack pg_squeeze |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 1.3 | 1817161514 | pg_checksums | - |
| RPM | PGDG | 1.3 | 1817161514 | pg_checksums_$v | - |
| DEB | PGDG | 1.3 | 1817161514 | postgresql-$v-pg-checksums | - |
Install
You can install pg_checksums directly. First, make sure the PGDG repository is added and enabled:
pig repo add pgdg -u # Add PGDG repo and update cache
Install the extension using pig or apt/yum/dnf:
pig install pg_checksums; # Install for current active PG version
pig ext install -y pg_checksums -v 18 # PG 18
pig ext install -y pg_checksums -v 17 # PG 17
pig ext install -y pg_checksums -v 16 # PG 16
pig ext install -y pg_checksums -v 15 # PG 15
pig ext install -y pg_checksums -v 14 # PG 14
dnf install -y pg_checksums_18 # PG 18
dnf install -y pg_checksums_17 # PG 17
dnf install -y pg_checksums_16 # PG 16
dnf install -y pg_checksums_15 # PG 15
dnf install -y pg_checksums_14 # PG 14
apt install -y postgresql-18-pg-checksums # PG 18
apt install -y postgresql-17-pg-checksums # PG 17
apt install -y postgresql-16-pg-checksums # PG 16
apt install -y postgresql-15-pg-checksums # PG 15
apt install -y postgresql-14-pg-checksums # PG 14
This extension does not require
CREATE EXTENSION
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
SIGUSR1to toggle progress reporting during operation
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.