pg_roast
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_roast | 1.0 | SEC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 7120 | pg_roast | No | Yes | Yes | Yes | No | No | roast |
| Related | pgaudit pg_auditor pg_permissions pgmemento table_log pgauditlogtofile set_user pg_snakeoil pg_readonly pg_command_fw |
|---|
Upstream has no release tag; package pins main commit ccbf012. Manual audits work normally; the periodic background worker requires shared_preload_libraries=pg_roast.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0 | 1817161514 | pg_roast | - |
| RPM | PIGSTY | 1.0 | 1817161514 | pg_roast_$v | - |
| DEB | PIGSTY | 1.0 | 1817161514 | postgresql-$v-pg-roast | - |
Build
You can build the RPM / DEB packages for pg_roast using pig build:
Install
You can install pg_roast directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Preload:
Create Extension:
Usage
Sources:
pg_roast runs opinionated PostgreSQL health checks and stores findings in its fixed roast schema. It checks configuration, schema design, indexes, vacuum and bloat indicators, security posture, replication, connections, and workload signals. Version 1.0 targets PostgreSQL 14 and later.
Manual audits
Manual mode does not require preloading:
Each run persists audit history and findings. Use the latest view for the newest run and the summary view for grouped results.
Scheduled audits
The optional background worker requires preload configuration and a restart:
The database setting is fixed at server start. Review the upstream settings before enabling automatic audits across a production workload.
Caveats
- Findings are heuristic advice, not automatic proof of a defect. Review workload context, maintenance windows, and PostgreSQL documentation before applying any recommendation.
- Audits execute catalog and statistics queries and write history tables. Measure overhead on large catalogs and protect the roast schema from untrusted users.
- Results can expose object names, configuration, security findings, and query-related operational details. Apply least privilege and an explicit retention policy.
- Preloading is unnecessary for manual runs but mandatory for the background worker; changing startup-only settings requires a restart.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)