pg_table_bloat
PostgreSQL extension that estimates table bloat from pg class + pg stats — no pgstattuple required
pg_table_bloat · PostgreSQL extension that estimates table bloat from pg class + pg stats — no pgstattuple required
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101633 | pg_table_bloat | pg_table_bloat | 0.1.0 | ADMIN | MIT | Rust |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_table_bloat.control)
- Official implementation source
pg_table_bloat — > A PostgreSQL extension that estimates table bloat from pg_class and pg_stats > — no pgstattuple required, no per-page lock, microseconds on tables of any size. Use it when administering or automating the database behavior described above. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Requirements and Caveats
- The catalog records version
0.1.0. - The control file marks the extension as non-relocatable.
- The control file does not require superuser-only installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.