News for hackers. Stuff that matters.
Re:Listen to Database Changes Through the Postgres WAL by refset on Monday November 17, 2025 @03:52AM (#45951925)
Recently released Clojure implementation of the same pattern: https://github.com/eerohele/muutos
Re:Listen to Database Changes Through the Postgres WAL by chamomeal on Monday November 17, 2025 @08:27AM (#45953363)
I saw the post on the clojure subreddit! I’m stoked to try it out.

Ever since I saw Martin Kleppman’s “Turning the database inside out” talk I’ve wanted an easy way to hook into a transaction log. Apache samza/kafka is very cool but I’m not going to set it up for personal projects. It’d be VERY cool to make materialized views straight from the log!!

Re:Listen to Database Changes Through the Postgres WAL by nightwolf on Monday November 17, 2025 @09:59AM (#45954168)
If you do end up trying it out and hit any roadblocks, please don't hesitate to file an issue. I'd be very interested in hearing how it goes!
Re:Listen to Database Changes Through the Postgres WAL by umanwizard on Monday November 17, 2025 @12:31PM (#45955826)
> It’d be VERY cool to make materialized views straight from the log!!

This is what Materialize does. You point it at some PG (or MySQL, or... probably lots more by now) sources, and then you can define arbitrary views on top of those sources using SQL (with the full power of relational logic: fully precise joins, etc.) The views are maintained incrementally, so they update almost instantly when the underlying data updates; you don't have to manually refresh them.

Disclaimer: I worked on Materialize for five years, and it is a commercial, proprietary project. But it is source-available (https://github.com/materializeinc/materialize) under a BSL-style license, and it has fairly generous terms for free usage.