News for hackers. Stuff that matters.
Re:Show HN: Code First CDC from Postgres to ClickHouse with ... by okane on Thursday October 16, 2025 @05:22PM (#45610825)
We wrote a guide + demo showing a code‑first path from Postgres to ClickHouse using Debezium and Redpanda, with MooseStack as the dx/glue layer.

This post targets teams who want code ownership: typed streams, stateless streaming transforms, and OLAP tables defined in code, with a local dev server to spin up ClickHouse + Redpanda + Debezium + Postgres in one command.

Blog is linked in the repo.

Right now the demo solely focuses on the local dev experience, looking for community input regarding best practices for running Debezium in production.

Re:Show HN: Code First CDC from Postgres to ClickHouse with ... by oatsandsugar on Thursday October 16, 2025 @05:39PM (#45611017)
I think my favorite part was the ability to use the same Drizzle TS data models created for Postgres for creating tables in ClickHouse
Re:Show HN: Code First CDC from Postgres to ClickHouse with ... by Bluegoop on Thursday October 16, 2025 @06:15PM (#45611342)
Super cool everything is better in code! :-)
Re:Show HN: Code First CDC from Postgres to ClickHouse with ... by tacone on Friday October 17, 2025 @08:47AM (#45616129)
Very nice. Is this only possible with postgres or might be possible with sqlite or some sqlite variant?
Re:Show HN: Code First CDC from Postgres to ClickHouse with ... by oatsandsugar on Friday October 17, 2025 @12:02PM (#45618271)
Co-author here, we used Debezium here because it supports many different databases. Unfortunately, no sqlite support—my understanding is as an embedded db it lacks some of the prerequisites that Debezium relies on.

Have you run CDC from sqlite? would love to hear how you did it and to try build a demo with MooseStack

Re:Show HN: Code First CDC from Postgres to ClickHouse with ... by tacone on Saturday October 18, 2025 @06:30AM (#45626267)
Hello, thank you for your answer. No I never ran CDC from sqlite, I am actually just investing sqlite, thus my question.