Skip to content

pg_wal_ext

Read WAL files and possibly generate the SQL

pg_wal_ext · Read WAL files and possibly generate the SQL

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101646pg_wal_extpg_wal_ext1.0ETLMITC

Usage

Sources:

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

CREATE EXTENSION pg_wal_ext;

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 returns SETOF.

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.

Table reader