Building https://github.com/viggy28/streambed - a full Postgres running on S3 using DuckDB as the query engine.
HN user
vira28
https://viggy28.dev
admin@viggy28.dev
Certainly interested.
Agree. Appreciate the reminder.
Tomas Vondra, a major Postgres contributor recently revived a thread on using Bloom filters - https://www.postgresql.org/message-id/flat/5cd8c20c-14b5-4b0...
So there is more core work happening on support OLAP but I do think it will take some time.
In the meantime, I think we have all the pieces (storage, query engine, table format) to set up a true OLAP. For instance, I created https://github.com/viggy28/streambed to pressure test this idea.
The idea is pretty similar. As per their README, Iceberg support is deprecated.
From what I understand Ducklake needs a dedicated metadata database and it also ties to DuckDB land wherease with Iceberg many engines can query directly.
The challenge with any CDC is making it reliable. Curious, how are you exporting to S3? - Debezium or some service in AWS or home grown tool?
Currently, Strembed expects REPLICA IDENTITY FULL for getting the before and after value of TOAST column. Since we have the data in object storage, we could populate it without the need for REPLICA IDENTITY FULL. Created an issue https://github.com/viggy28/streambed/issues/25 to track this feature.
Welcome. To avoid primary running out of disk space, you can configure max_slot_wal_keep_size https://www.postgresql.org/docs/17/runtime-config-replicatio...
Since Supabase is vanilla Postgres, streambed should work with replica as the source.
reg, Planetscale, I haven't looked at their offerings yet.
Where do you host your DB currently? Happy to try out with that provider as the source.
Aside from the cost, my major motivation is to keep the infrastructure simple. The data is already there in Postgres, so I didn't want to add another data warehouse. I have also shared my thoughts on where this is heading https://viggy28.dev/article/postgres-gateway-drug/
Thanks for the kind words!
Short answer: yes, column-level schema changes sync to Iceberg automatically[0].
Logical replication (pgoutput in v1) doesn't actually stream DDL statements. Instead, Postgres emits a fresh Relation message describing the table's current column layout right before the next change to that table. So we diff that against the last layout we knew and infer what changed.
From there we evolve the Iceberg schema in place: flush any buffered rows under the old schema first, then write a new metadata version with the change. What's handled today:
- ADD COLUMN — new field ID allocated; the column's Postgres DEFAULT is carried into Iceberg's initial-default/write-default, so existing rows read back correctly
- DROP COLUMN — removed from the current schema, existing data files untouched
- Type widening — int4→int8, float4→float8 (the changes Iceberg considers compatible)
- REPLICA IDENTITY changes
[0] https://github.com/viggy28/streambed/pull/21Welcome. Would love to hear your experience. Feel free to share here or in the repo. Fully open source.
Should be fairly doable using binlog-based producer https://github.com/go-mysql-org/go-mysql.
Both projects are relevant. Curious, what kinda pushdown capabilities that you were looking for?
Hello, I checked ingestr repo, and it is in my bookmark. Small world.
Agree, CDC is like Death by a thousand cuts. I believe Debezium has a Java library.
My initial need was Postgres compatibilty. Wanted to give an endpoint that BI and dashboard teams can use to query as if they are querying a Postgres replica. Added more context here https://news.ycombinator.com/item?id=48350820
Author here. For context, I was the tech lead for the Postgres team at Cloudflare, and this came directly out of a challenge I kept hitting there: BI and dashboard teams needed to run long-running analytical queries, and the answer was always to spin up another bespoke read replica or stand up an ETL dump into an analytical database and query that.
So the question I started with was: what's the fewest components I could get away with? That led to the architecture here — Streambed connects to Postgres as a logical replication subscriber (same mechanism as a read replica) and streams WAL changes straight into Apache Iceberg on S3, queryable from psql via an embedded DuckDB. There are a lot of edge cases to handle, and it's very much early days.
Welcome any feedback.
If I have to guess on why they are providing voluntary exit option, because they have a lot more folks from Europe.
Did exactly that for the actual filing — Python, mentioned in the post. The 23 numbers were a probe, not the goal: I wanted to understand how it works.
Curious, why cursor for this? VSCode or pretty much pure open source IDE's have CC integration. Or am i missing something?
I am on phone. Sorry if it’s already discussed.
How’s it different from Parallel Web Systems?
Rappo | https://buildrappo.com | Founding Applied AI Engineer | Remote or Onsite SF
Hi, we have been working on a personal assistant for knowledge professionals. A lot of challenges around building an advanced RAG, improving reasoning, and custom models
Learn more about the role: https://wellfound.com/jobs/3382533-senior-ai-ml-engineer or email vignesh@buildrappo.com
PS: I am a solo founder, and we are generous with equity
How does this compare to Letta?
Rappo | https://buildrappo.com | Founding Fullstack Engineers | Remote (Preferably India) Hi, I am the founder of Rappo (agentic GTM Chief of Staff). We observed that technical startups spend way too much time in the early stages figuring out GTM.
Everyone says early PMF is crucial, but there is no streamlined support there.
Learn more about the role: https://wellfound.com/jobs/3133503-lead-founding-full-stack-...
PS: I am a solo founder, and we allocated generous equity for advisors and early hires.
Building Rappo (http://buildrappo.com/founders), an agentic GTM for devtools and infra startups to land their first customer.
It’s one of the area where Postgres docs are light.
I don’t remember they have a similar doc for setting up HA.
Rappo | https://buildrappo.com | Founding Fullstack Engineers | Remote (Preferably India)
Hi, I am the founder of Rappo (a network for GTM). We observed that technical startups spend way too much time in the early stages figuring out GTM.
Everyone is like PMF is crucial, but there is little support/help around in getting there.
Learn more about the role: https://wellfound.com/jobs/3133503-lead-founding-full-stack-...
PS: I am a solo founder, and we allocated generous equity for advisors and early hires.
This is amazing overview of the current challenges.
As a database practitioner and a founder of a database startup, I would be curious to see how you approach these challenges and address them. Also, how you make it economically sustainable too.
How should I think about banc wrt digits?
A platform for technical founders to accelerate their journey to PMF http://buildrappo.com/founders
BTW, thanks for your awesome work with Pigsty :pray: