pg_catcheck
Diagnosing system catalog corruption
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_catcheck | 1.6.0 | ADMIN | BSD-3-Clause | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5160 | pg_catcheck | No | Yes | No | Yes | No | No | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 1.6.0 | 1817161514 | pg_catcheck | - |
| RPM | PGDG | 1.6.0 | 1817161514 | pg_catcheck_$v | - |
| DEB | PGDG | 1.6.0 | 1817161514 | postgresql-$v-pg-catcheck | - |
Install
You can install pg_catcheck directly. First, make sure the PGDG repository is added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
pg_catcheck is a command-line tool that checks PostgreSQL system catalogs for corruption by verifying cross-references between catalog tables. It accepts the same connection parameters as other PostgreSQL utilities (-h, -p, -U, -d).
Basic Usage
Normal output when no issues are found:
Example Output with Corruption
Result Categories
- Inconsistencies: logical problems in catalog cross-references (e.g., dangling OID references)
- Warnings: more serious issues
- Errors: inability to read catalogs
Options
Connection
Supports the same options as psql: -h host, -p port, -U user, -d database, or connection strings/URLs.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)