Streambed

Postgres-to-Iceberg CDC engine with a built-in Postgres wire query server

Image 1 of 4: Diagram of a time travel query resolving a 12:00 cutoff to the newest retained snapshot, the one from 11:55

Subscribes to Postgres logical replication, decodes WAL into per-table buffers and flushes Parquet to S3 with Iceberg or DuckLake commits. An embedded DuckDB server answers over the Postgres wire protocol, so psql queries the lake with no ETL pipeline or Spark.

  • 165k rows/sBacklog drain (M3 Max)
  • 3,077 ms to 45 msSparse update, 1 GiB
  • 540 s to 13 s10% update, 1M rows

Trade-offs

  • Copy-on-write by default, Merge-on-Read opt-in. MOR cut a sparse 1 GiB update from 3,077 ms to 45 ms, but after 100 mixed batches its median query ran 8.2x slower than COW.
  • DuckLake as an alternative target to Iceberg. Catalog metadata sits in a database, not object-store files, so commits fit small CDC batches, though the data still has to be written.
  • Hot-standby replica as an optional source. WAL retention and replication load stay on the standby, but it needs Postgres 16+ and a second connection to the primary.

Q&A4

The Streambed flush or commit time, not the original Postgres transaction time. Timestamp literals without an offset are read as UTC.

Reviews

Loading reviews

    More in Postgres

    See all 25 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • arbiterPostgreSQL job queue for Haskell, with no broker and no leader
    • MigrationPilotPostgreSQL migration linter that blocks unsafe DDL before merge
    • go-ledgerMulti-tenant double-entry payment ledger API in Go, built in public
    • pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
    • RRQClosed-loop payment ledger on sharded Postgres with a Kafka outbox

    More in Data engineering

    See all 13 →
    • PaganelData migration engine that verifies the destination down to the row
    • DuckpadVisual DuckDB pipelines that trace a number back to its source
    • Global News Intel PlatformServerless pipeline over world news events, run at zero cost
    • LoomFlowSelf-hosted visual ETL on Polars and React Flow
    • wiki-geoparquetEvery geotagged English Wikipedia article as open GeoParquet
    • SyncleKeeps databases in sync across engines in real time, without Kafka

    More in Streaming

    See all 9 →
    • clinkC++ stream processing engine that stays correct when processes die
    • DeltaForgeChange Data Capture engine in Rust for MySQL and PostgreSQL
    • TangentStream processing with plugins in real languages, not DSLs
    • streamtopTerminal monitor for live HLS, DASH and IPTV streams
    • RUSEON CoreEdge video server in Go for IP camera fleets
    • Chronik StreamKafka-compatible event log with SQL, search and vectors in one binary