Installation¶
Docker¶
The quickest way to run pg2iceberg is with Docker:
Helm¶
Deploy to Kubernetes using the official Helm chart:
Binary¶
Pre-built binaries are available on the GitHub releases page.
Prerequisites¶
PostgreSQL¶
Logical replication must be enabled. Set the following in postgresql.conf:
Then create a replication slot and publication for the tables you want to replicate:
SELECT pg_create_logical_replication_slot('pg2iceberg', 'pgoutput');
CREATE PUBLICATION pg2iceberg FOR TABLE my_table;
Note
The replication slot retains WAL until pg2iceberg consumes it. Monitor slot lag to avoid excessive disk usage on the primary.