pg_readme
pg_readme : Generate a Markdown README from PostgreSQL COMMENT objects
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 4300 | pg_readme | pg_readme | 0.7.1 |
UTIL | PostgreSQL | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-r | No | No | No | Yes | yes | no |
| Relationships | |
|---|---|
| Requires | hstore |
| See Also | ddlx pg_render schedoc pgdd meta pgpdf pg_get_functiondef pg_dbms_metadata pg_catcheck pg_query_rewrite |
| Siblings | pg_readme_test_extension |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 0.7.1 |
18 17 16 15 14 | pg_readme |
hstore |
| RPM | PGDG | 0.7.0 |
18 17 16 15 14 | pg_readme_$v |
- |
| DEB | PIGSTY | 0.7.1 |
18 17 16 15 14 | postgresql-$v-pg-readme |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 |
| el8.aarch64 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 |
| el9.x86_64 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 |
| el9.aarch64 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 |
| el10.x86_64 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 |
| el10.aarch64 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 | PGDG 0.7.0 |
| d12.x86_64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
| d12.aarch64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
| d13.x86_64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
| d13.aarch64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
| u22.x86_64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
| u22.aarch64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
| u24.x86_64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
| u24.aarch64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
| u26.x86_64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
| u26.aarch64 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 | PIGSTY 0.7.1 |
Source
github.com/bigsmoke/pg_readme
pg_readme-0.7.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
- pg_readme 0.7.1 README
- pg_readme 0.7.1 control file
- pg_readme 0.7.1 upgrade SQL
- Pigsty package matrix
pg_readme generates Markdown documentation for a PostgreSQL extension or schema from COMMENT objects and live catalog metadata. Use it to keep an extension’s README close to its SQL definitions and verify the generated output in source control.
Install and Generate Markdown
The control file requires hstore, is relocatable, and permits non-superuser installation when the caller can install its dependencies and create the objects.
Add Processing Instructions
Put Markdown and processing instructions in the extension or schema comment:
<?pg-readme-reference?> expands to a catalog-derived object reference. <?pg-readme-colophon?> adds generation metadata. Optional instruction attributes can adjust the heading depth when embedding generated sections.
Settings
pg_readme.include_view_definitions: include view definitions; defaulttrue.pg_readme.include_routine_definitions_like: array of routine-name patterns whose definitions are included; default'{test__%}'.pg_readme.include_this_routine_definition: routine-local override for including the current definition.pg_readme.readme_url: upstream README link used by generated material.
Use SET options on a wrapper function or transaction when a project needs reproducible generation settings.
Version 0.7.1 and Caveats
- Version 0.7.1 fixes PostgreSQL 18 reference generation that could duplicate array/composite table types and
NOT NULLmarkers. - Upstream and the current Pigsty DEB package are 0.7.1, while the current Pigsty RPM package remains 0.7.0. Check
pg_available_extension_versionsbefore relying on the PostgreSQL 18 fix. - Generated output reflects the current database catalog, installed extension versions, comments, and generation time. Review diffs instead of assuming two environments produce identical text.
- Catalog introspection does not replace hand-written operational guidance. Keep prerequisites, preload/restart behavior, upgrade notes, and unsafe operations in curated prose.
- The singular setting
pg_readme.include_routine_definition_likeappears in an old README wrapper example, but the documented current GUC is the pluralpg_readme.include_routine_definitions_like.