pg_fasttransfer
pg_fasttransfer · Postgresql Extension for FastTransfer
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101225 | pg_fasttransfer | pg_fasttransfer | 1.0 | ETL | MIT | C |
PostgreSQL · 15, 16, 17, 18
| Relationships | |
|---|---|
| Requires | pgcrypto |
Usage
Sources:
- Official README
- Version 1.0 SQL definitions
- Version 1.0 C implementation
- FastTransfer product documentation
pg_fasttransfer lets a PostgreSQL backend launch the separately installed FastTransfer program and return its process result as rows. It is an administrative bridge to an external licensed data-transfer tool, not an in-database replication protocol.
Core Workflow
Install pgcrypto and the extension, make the FastTransfer executable and license readable by the PostgreSQL operating-system account, then invoke the administrative function with explicit source, target, and binary paths:
Objects and Result
pg_fasttransfer_encrypt(text)produces the encoded password format accepted by the runner.xp_RunFastTransfer_secure(...)maps its named arguments to FastTransfer command-line options and returnsexit_code,output,error_message,total_rows,total_columns,transfer_time_ms, andtotal_time_ms.- Version
1.0requirespgcrypto. Upstream reports tests on PostgreSQL 15 through 17 on Linux and 16 through 17 on Windows; other combinations are not documented as validated.
Security and Operations
The reviewed C source constructs a shell command from SQL arguments and calls popen; values are enclosed in double quotes but embedded quotes and shell metacharacters are not escaped. Revoke execution from application and untrusted roles, and allow only vetted, fixed inputs from administrators. The same source embeds the password-encryption key as the constant key, so pg_fasttransfer_encrypt(text) is obfuscation rather than protection against anyone who can inspect the binary or source. Process output may also contain sensitive connection or transfer details.
The transfer runs with the database server account’s filesystem, process, and network access and can perform remote bulk writes. Use a least-privileged source account, a narrowly scoped target account, protected license and settings files, explicit timeouts outside the extension, and a rehearsed recovery plan before enabling destructive load modes.