pg_tm_aux
Transfer manager auxiliary functions
pg_tm_aux · Transfer manager auxiliary functions
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (pg_tm_aux.control)
- Official extension SQL (pg_tm_aux–1.0.sql)
pg_tm_aux — (Not needed since Postgres 17, use logical slots failover). 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_create_logical_replication_slot_lsn(IN slot_name name, IN plugin name, IN temporary boolean DEFAULT false, IN restart_lsn pg_lsn DEFAULT null, IN force boolean DEFAULT true, OUT slot_name name, OUT lsn pg_lsn)is an extension function and returnsRECORD.pg_create_logical_replication_slot_lsn(IN slot_name name, IN plugin name, IN temporary boolean DEFAULT false, IN restart_lsn pg_lsn DEFAULT null, OUT slot_name name, OUT lsn pg_lsn)is an extension function and returnsRECORD.
Requirements and Caveats
- The reviewed control file declares default version
1.1.1. - 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.