pg_duckpipe
pg_duckpipe · CDC synchronization from heap tables to DuckLake columnar tables
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101052 | pg_duckpipe | pg_duckpipe | 1.0.0 | ETL | MIT | Rust |
PostgreSQL · 17, 18
| Relationships | |
|---|---|
| Requires | pg_duckdb pg_ducklake |
Usage
Sources:
pg_duckpipe uses logical decoding to copy existing heap-table rows and stream later WAL changes into DuckLake columnar tables. Install pg_ducklake and its bundled pg_duckdb, then configure logical WAL and preload both libraries:
Restart PostgreSQL, enable the extensions, and add a primary-key table to the default sync group:
Compatibility and WAL safety
Version 1.0.0 has Cargo build features for PostgreSQL 14 through 18, while the top-level README says CI tests PostgreSQL 17 and 18; validate the packaged combination in use. Default upsert mode requires a primary key, while append mode can handle tables without one. Every sync group owns a logical replication slot, so stalled or orphaned groups can retain WAL until disk exhaustion. Configure max_slot_wal_keep_size, monitor slot lag, and call duckpipe.drop_group() when retiring an empty group.