frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Mason – a lightweight Postgres read-replica, built on columnar storage

https://masondata.ai/
9•tagspace•1h ago
Hi HN! TLDR: we’ve built an open-source drop-in replacement for a postgres read-replica, powered by duckdb’s columnar compute engine. It’s very fast. And it looks like postgres.

So, this started out as: let’s just connect Clickhouse to our postgres dbs and throw our analytics queries at it instead. That will speed everything up. But we quickly found that 1) Clickhouse comes with quite the learning curve (engine optimisation) to make it fast (we needed something we could easily drop in to any customer’s postgres scenario), and 2) we had underestimated how different clickhouse’s SQL syntax was to postgres. Don’t get me wrong: we love Clickhouse (it’s ridiculously fast if you know what queries to expect), it just didn’t work for our ad-hoc postgres workloads.

So we went searching for alternatives that were 1) more plug-and-play and 2) looked a lot more like postgres.

We dismissed a bunch based on desk research alone:

- pg_mooncake (seems to have stalled since data bricks bought them)

- pg_duckdb (seems to offer fast queries, or fresh data, but not both - we needed both)

- materialize/risingwave/readyset (like Clickhouse, they require knowing the query shapes upfront - not ideal for ad-hoc workloads)

- firebolt (license makes it challenging to offer to our customers)

- redshift / alloydb / etc (we wanted something cloud-provider agnostic)

And we shortlisted 3:

- pg_clickhouse (Postgres extension that parses SQL in Postgres and pushes the work down to ClickHouse)

- cedarDB (closed-source, Postgres-compatible analytical database)

- duckdb (open-source, embedded columnar analytics engine with a Postgres-like SQL dialect)

We needed to know how they would perform on real postgres queries, so we took a backlog of 5,410 (hand-written) queries (chosen because they had been slow to execute against postgres) from 159 real postgres databases. We then generated synthetic data (dynamically using the schemas from those 159 databases) to fill 159 local databases so we could run the experiment.

We then spun up the 3 short-listed tools locally, and ran each of the 5,410 queries against both postgres and the 3 tools, and compared the results:

- pg_clickhouse (matched postgres 59.4% of the time, refused 39.9% of the queries and was “wrong” 0.8% of the time).

- cedarDB (matched postgres 88.1% of the time, refused 8% of the queries and was “wrong” 3.9% of the time).

- duckdb (matched postgres 84.1% of the time, refused 14.3% of the queries and was “wrong” 1.6% of the time).

Matched meant they returned exactly the same result as postgres. Refused meant they returned an error message (usually telling you some syntax isn’t recognised). And “wrong” meant they didn’t return the same results as postgres. I appreciate that arguably postgres may be the one that is wrong in some cases - but for our use case, we considered postgres the golden source of truth.

So, both duckdb and cedardb performed pretty well (correctly handled more than 80% of the postgres queries we threw at it), out-of-the box. But we really still wanted to try and cover that long-tail.

We chose duckdb as its open-source license would allow us to easily work on the long tail to get the postgres SQL parity we wanted.

So, Mason (linked above), is what we built, powered by duckdb, which now matches postgres on 96% of our 5,410 queries, plus hundreds of other queries that we added, testing it with Metabase, Grafana, Superset, DBeaver and Trevor.io. For the remaining 4%, it errors with a nice clear message telling you how to rewrite your SQL.

We’d love your feedback on what we’ve built. Useful? How can we make it better?

Cyberattack campaign compromising Check Point servers across 22 organizations

https://www.greynoise.io/blog/check-point-security-management-servers-intrusion-campaign
106•louiereederson•1h ago•42 comments

Jetty Pro

http://hypercritical.co/2026/11/23/jetty-pro
84•zdw•1h ago•29 comments

Mechanical Pencil: Spray Bottle

https://mechanical-pencil.com/products/spray-bottle
74•vinhnx•2d ago•16 comments

2035 came early

https://fzakaria.com/2026/11/23/2035-came-early
784•setheron•11h ago•293 comments

Splitting USB-C: USB 3 and USB 2 on One Port

https://www.frankchiarulli.com/blog/splitting-usb-c/
38•fcjr•2h ago•18 comments

A training engine for your local model, using your idle compute

https://github.com/sous-labs/songe
56•bluepeter•2h ago•5 comments

How to Make a Lovable City

https://www.worksinprogress.news/p/how-to-make-a-lovable-city
29•crescit_eundo•1h ago•2 comments

Weave (YC W25) is hiring ML, AI, product, & design engineers

https://jobs.ashbyhq.com/weave-os
1•adchurch•48m ago

The KL Divergence Is Never Negative, Except in PyTorch

https://arxiv.org/abs/2611.30835
28•Anon84•1h ago•4 comments

LLM agents work for their parent companies, not for you

https://michaelharley.net/posts/2026/11/01/llm-agents-work-for-their-parent-companies-not-for-you/
642•surprisetalk•5h ago•264 comments

Worshipping at the altar of Brendan Gregg

https://fzakaria.com/2026/11/12/worshipping-at-the-altar-of-brendan-gregg
170•kqr•6h ago•28 comments

Quad9 pulled their DNS service from France

https://quad9.net/news/blog/quad9-service-deactivation-in-france/
198•farrokhi•9h ago•101 comments

Gnomon: Git for Postgres Data

https://gnomon.bitsinfra.com/
14•lucasluitjes•1d ago•0 comments

SeaStore: Redesigning Ceph's Storage Back End for CPU-Efficient NVMe Performance

https://dl.acm.org/doi/10.1145/3828523.3857112
42•shraddhaag•1d ago•0 comments

How a Mechanical Watch Keeps Time (Interactive 3D)

https://martincmartin.github.io/slidev-stem/watches/article/1/
137•martincmartin•2d ago•38 comments

Stalwart is now a drop-in replacement for Microsoft Exchange

https://stalw.art/blog/microsoft-exchange-replacement/
649•shaunpud•19h ago•326 comments

Show HN: Mason – a lightweight Postgres read-replica, built on columnar storage

https://masondata.ai/
9•tagspace•1h ago•0 comments

An anti-slavery sugar bowl (2024)

https://www.vam.ac.uk/blog/museum-life/an-anti-slavery-sugar-bowl
95•leonry•2d ago•58 comments

Ex-Nvidia partner Megaspeed hit with U.S. Commerce Department export ban

https://www.upi.com/Top_News/US/2026/11/24/NVIDIA-partner-Megaspeed/1701795520063/
47•nephihaha•1h ago•25 comments

Just a Few Bugs

https://www.justafewbugs.xyz/
109•jjjegly•8h ago•37 comments

GTA 6 Recomp (Leonida) banned from GitHub while lead dev was in school

https://github.com/ItsNotRexed/Leonida/issues
264•smuhakg•15h ago•435 comments

AMD EPYC Zen 6 vs. Zen 1 Performance: 12.1x Geo Mean in Less Than 10 Years

https://www.phoronix.com/review/amd-epyc-9006-7601
196•zdw•12h ago•99 comments

Nvidia Reinstates Jensen Huang as CEO

https://www.cnbc.com/2026/11/23/nvidia-jensen-huang-ceo.html
2744•jaz•1d ago•3602 comments

Tidal bans AI-generated music

https://variety.com/2026/music/news/tidal-bans-ai-generated-music-1236956924/
219•theanonymousone•1h ago•178 comments

Top MIT Physicist: Anthropic Staff Openly Talk About 'Taking over the World'

https://novaramedia.com/2026/11/24/anthropic-staff-openly-talk-about-taking-over-the-world-claims...
12•mikhael•38m ago•1 comments

Ladybird is now in alpha

https://ladybird.org/posts/alpha/
2328•janvdberg•1d ago•574 comments

Del Casher–guitarist who was driving force behind the wah-wah pedal–dies at 88

https://www.nytimes.com/2026/11/17/obituaries/del-casher-dead.html
55•bookofjoe•2d ago•15 comments

Drone Maps of Salvage Yards

https://salvageyarddrone.wordpress.com/
156•uptrails•13h ago•62 comments

GPUI is getting its own repository

https://github.com/zed-industries/gpui
364•EvilGoose•20h ago•131 comments

New York Bans Subscription and Post-Purchase Fees on Cars

https://www.governor.ny.gov/news/money-your-pockets-governor-hochul-signs-bill-restricting-exploi...
708•DeepLogin•15h ago•339 comments