← Back to Tech Radar
Hacker News tech

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

Trending on Hacker News: Show HN: Mason – A lightweight Postgres read-replica, built on columnar storage (69 points / 10 comments, via masondata.ai)

In one line

Mason is a lightweight drop-in replacement for your Postgres read replica. Same SQL, same answers. But extremely fast for analytical queries.

Opening excerpt

$ npm i -g @mason-data/cli $ cd my-app # tell Mason which Postgres database to sync from $ mason init ‘postgres://me:secret@db.example.com:5432/my_db’ # choose the tables to sync $ mason add orders customers # start Mason locally and wait for the first sync to finish $ mason start && mason wait # get a connection URL for your favorite Postgres client $ mason user add me # get results fast $ psql “postgres://me:@localhost:5433/mason” -c “SELECT country, sum(amount) FROM orders JOIN customers ON customers.id = customer_id GROUP BY country” # or give it to your coding agent $ claude mcp add mason —env MASON_URL=“postgres://me:@localhost:5433/mason” — mason mcp # done? stop Mason and delete its synced copy of your data $ mason stop && mason destroy Self-host it → Try Mason Cloud Free →

Queries that read lots of rows, like counts, sums and group-bys over big tables. The kind dashboards, reports and AI agents run.

Queries that fetch a few rows and many columns, like looking up one order by its ID. Mason is fastest when you’re querying a lot of rows across a few columns.

(Excerpted from the original; full article via the source link below.)

This story hit the Hacker News front page today (69 points / 10 comments, via masondata.ai). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.

Source: Hacker News

Related Services

Related Reading