Show HN: Streambed – Stream Postgres to Iceberg on S3, Supports Postgres Wire
Summary
Streambed is an open-source CDC engine that streams Postgres WAL changes to Iceberg tables on S3, with a built-in query server using DuckDB that speaks the Postgres wire protocol.
View Cached Full Text
Cached at: 05/31/26, 07:36 PM
viggy28/streambed
Source: https://github.com/viggy28/streambed
Streambed
Postgres-to-Iceberg CDC engine. Offload analytical queries from your production database without changing your application.
streambed streams WAL changes via logical replication, writes Parquet files to S3, and commits Iceberg metadata. Query the result with any Iceberg-compatible engine – or use the built-in query server, which speaks the Postgres wire protocol so you can connect with psql.
See It In Action
Same analytical query on pgbench (1M accounts, 500K history rows). Postgres on the left, Streambed on the right.

No ETL. No Spark. Just Postgres + S3.
Quick Start
# Start Postgres + MinIO locally
docker compose up -d
# Build
go build -o streambed ./cmd/streambed
# Start syncing + query server on :5433
./streambed sync \
--source-url="postgres://postgres:test@localhost:5432/postgres" \
--s3-bucket="streambed" \
--s3-endpoint="http://localhost:9000" \
--s3-prefix="test" \
--query-addr=:5433
# Query your Postgres tables via Iceberg
psql -h localhost -p 5433 -U postgres -d postgres
Run streambed sync --help for all configuration options. All flags support environment variables with STREAMBED_ prefix (e.g. STREAMBED_SOURCE_URL).
Architecture
How It Works
Postgres WAL ──▶ Decode ──▶ Buffer ──▶ Parquet ──▶ S3 ──▶ Iceberg Commit
│
DuckDB ◀──┘ (query server)
Streambed connects to Postgres as a logical replication subscriber. It decodes WAL messages (inserts, updates, deletes), buffers rows per table, and periodically flushes them as Parquet files to S3 with Iceberg metadata commits. Updates and deletes use copy-on-write merging against existing Parquet data.
A query server exposes Iceberg tables over the Postgres wire protocol using embedded DuckDB, so you can query with psql or any Postgres client.
Commands
| Command | What it does |
|---|---|
streambed sync | Main daemon. Streams WAL, writes Iceberg, optionally serves queries. |
streambed resync --table=public.users | One-shot backfill via COPY under a consistent snapshot. |
streambed query | Standalone query server (no sync). Points at existing Iceberg tables. |
streambed cleanup --table=public.users | Deletes S3 objects and state for a table. Useful before resync. |
Development
Requires Go 1.22+ and CGO (for go-duckdb and go-sqlite3).
# Build
go build -o streambed ./cmd/streambed
# Unit tests
go test ./internal/... ./config/...
# Integration tests (requires Docker)
./scripts/test-integration.sh
Integration tests use the integration build tag and run against Postgres (port 5434) and MinIO (port 9002) from test/integration/docker-compose.yml.
Similar Articles
How We Pushed CDC into Postgres
Snowflake's engineering blog details the new Postgres data mirroring feature that pushes changes via a snowflake_cdc extension into Iceberg tables, aiming for resilient, low-lag transactional replication.
@ajassy: A painful part of working with your data has always been that your live data and historical data are stuck in separate …
Amazon Aurora PostgreSQL now embeds DuckDB to let users directly query live operational data alongside historical data in Apache Iceberg and Parquet formats stored in S3 data lakes, eliminating the need for ETL pipelines and data duplication.
@Greptime: GreptimeDB Enterprise now integrates with Apache Iceberg, making your tables queryable from Spark, Trino, DuckDB, and p…
GreptimeDB Enterprise integrates with Apache Iceberg to make tables queryable from Spark, Trino, DuckDB, and other engines without copying data by publishing Iceberg metadata over existing Parquet files.
Show HN: Streambench – Native Mac Client for Kafka and NATS
Streambench is a native macOS desktop application providing a GUI for managing Kafka and NATS JetStream streams, with features like live message tailing and consumer lag monitoring.
Postgres data stored in Parquet on S3: LTAP architecture explained
Databricks introduces Lakebase LTAP architecture that stores Postgres data in Parquet on S3, enabling transactions and analytics on a single copy of data without CDC or mirroring.