AI NewsDev toolsAnnouncement

Mason is a Postgres read-replica on DuckDB, built for AI agents

Mason is a new Postgres read-replica with a columnar backend and an MCP server. It launched on Hacker News with 52 points.

AI News

Editorial2 min read

LinkedInX
Mason Postgres read-replica project card

Why it mattersAn analytics team pointing agents at its production database now has a middle option. It is not the primary and not a full data warehouse.

Letting an AI agent read your Postgres database is a design problem, not a connector problem. Mason is the newest answer.

Mason is a Postgres read-replica. It was posted as a Show HN on 24 November 2026 and had 52 points three hours in. It runs as a single Node.js process. It keeps a synced copy of your Postgres tables in DuckDB's columnar storage. A reader can query it with the same Postgres SQL they already write.

The agent angle

Mason has its own MCP server. The site says Claude Code and ChatGPT can "look at your tables and run queries" through it. Each agent gets its own role. The role sets which tables and columns the agent can read. Row-level security follows foreign keys. The server logs every query, by the site's own account. The log holds the SQL the agent sent and how long the query took.

The design matters because it closes the first gap in letting a coding agent touch a real database. An agent calling the primary Postgres risks a slow analytical query locking the production system. An agent given a warehouse often gets permissions that a new agent should not inherit. Mason sits between the two.

The compatibility number

The team ran 5,410 queries from 159 production databases against three candidate engines before building on DuckDB. The site reports 96 percent of the 5,410 matched PostgreSQL's own answers after Mason's own query rewriter. On a 10 million row aggregation query, the site says Mason returned in 0.193 seconds against 15.7 seconds on Postgres. That is a listed 81 times difference. A 100 million row test claims 467 times. Both are Mason's own numbers.

Sync runs on demand, by polling, or by logical replication. The project runs on localhost:5433 by default.

What a team can do with it today

Mason is open on GitHub under Apache-2.0, and a hosted cloud version is in free trial. The product targets two readers. One is an analytics team that wants fast reads of production data without a warehouse. The other is a team opening agent access to its tables without giving the agent the primary role.

The limit is that Mason is new. Nobody outside the team has run it on production for long. The 81-times number is on a shape of query DuckDB already wins on, aggregating a few columns across many rows. A query on many columns of one row is where Postgres is faster, by the site's own note. A reader should test their own workload before they commit to it.

Source

SourceMason

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project