data_historization
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
data_historization | 1.1.0 | UTIL | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4320 | data_historization | No | No | No | Yes | Yes | No | - |
| Related | plpgsql table_log pgmemento table_version temporal_tables periods ddl_historization emaj pgaudit pg_drop_events pgauditlogtofile |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.1.0 | 1817161514 | data_historization | plpgsql |
| RPM | PIGSTY | 1.1.0 | 1817161514 | data_historization_$v | - |
| DEB | PIGSTY | 1.1.0 | 1817161514 | postgresql-$v-data-historization | - |
Build
You can build the RPM / DEB packages for data_historization using pig build:
Install
You can install data_historization directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
data_historization: Track data changes in partitioned log tables
PL/pgSQL scripts to historize data changes into partitioned tables.
Initialize Historization
Set up the necessary objects for a table (no data collected yet):
Start Historization
Install triggers to begin collecting changes into the _log table:
Stop Historization
Remove triggers and stop collecting changes:
Reset Historization
Remove cron entries and columns created on the source table:
Clean Historization
Remove the log table entirely:
Partition Management
Create and drop partitions manually:
Automate with pg_cron:
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)