pg_wal_ext
Read WAL files and possibly generate the SQL
pg_wal_ext · Read WAL files and possibly generate the SQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101646 | pg_wal_ext | pg_wal_ext | 1.0 | ETL | MIT | C |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_wal_ext.control)
- Official extension SQL (pg_wal_ext–1.0.sql)
pg_wal_ext — Read WAL files and generate SQL from WAL. Use it when moving, transforming, or integrating the corresponding data from PostgreSQL. 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.
Important Objects
pg_xlog_records(IN xlog_file_path text, OUT page_num int4, OUT txn_id xid, OUT xlog_type text, OUT commit_ts timestamptz, OUT generated_sql text)is an extension function and returnsSETOF.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.