ddl_historization
ddl_historization : Historize the ddl changes inside PostgreSQL database
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 4310 | ddl_historization | ddl_historization | 0.2 | UTIL | GPL-2.0 | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
----d-- | No | No | No | Yes | no | no |
| Relationships | |
|---|---|
| Requires | plpgsql |
| Need By | schedoc |
| See Also | pg_readme data_historization table_version gzip bzip zstd http pg_net |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.2 | 18 17 16 15 14 | ddl_historization | plpgsql |
| RPM | PIGSTY | 0.2 | 18 17 16 15 14 | ddl_historization_$v | - |
| DEB | PIGSTY | 0.2 | 18 17 16 15 14 | postgresql-$v-ddl-historization | - |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
el8.x86_64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
el8.aarch64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
el9.x86_64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
el9.aarch64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
el10.x86_64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
el10.aarch64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
d12.x86_64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
d12.aarch64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
d13.x86_64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
d13.aarch64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
u22.x86_64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
u22.aarch64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
u24.x86_64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
u24.aarch64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
u26.x86_64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
u26.aarch64 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 | PIGSTY 0.2 |
Source
pig build pkg ddl_historization; # build rpm/debInstall
Make sure PGDG and PIGSTY repo available:
pig repo add pgsql -u # add both repo and update cacheInstall this extension with pig:
pig install ddl_historization; # install via package name, for the active PG version
pig install ddl_historization -v 18; # install for PG 18
pig install ddl_historization -v 17; # install for PG 17
pig install ddl_historization -v 16; # install for PG 16
pig install ddl_historization -v 15; # install for PG 15
pig install ddl_historization -v 14; # install for PG 14Create this extension with:
CREATE EXTENSION ddl_historization CASCADE; -- requires plpgsqlUsage
ddl_historization is a PostgreSQL extension that records database DDL changes in a historization table. The upstream README documents installation via make install, pgxn install ddl_historization, and an AWS RDS path via pg_tle.
Enable logging
CREATE EXTENSION ddl_historization;The README describes the extension as using PostgreSQL event triggers to historize DDL changes made in the database.
What upstream currently documents
- Cluster-local install:
make install - PGXN install:
pgxn install ddl_historization - AWS RDS /
pg_tle: buildpgtle.ddl_historization-0.3.sqlwithmake pgtle - Test suite:
make testwith pgTAP
Release notes worth knowing
- Release
0.2is the version requested by this refresh task. - Release
0.0.4says it added functions to start and stop logging. - Release
0.0.6says it added addl_history_columntable. - Release
0.0.7says it fixed a foreign-key related logging bug.
Caveat
The current upstream README is minimal and does not document the exact SQL signatures for the start/stop logging functions or the schema of the historization tables added in later releases. Keep this stub conservative unless the upstream README or release notes become more explicit.