Mason - Drop-in Postgres read replica for fast analytics

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

Mason - Drop-in Postgres read replica for fast analytics

Mason is a lightweight, open-source Postgres read replica that syncs your data into DuckDB's columnar engine, delivering the same SQL and answers but up to 81x faster for analytical queries. It's a single Node.js process you can run anywhere, with role-based access control, row-level security, and built-in MCP support for AI agents. Perfect for dashboards, reports, and AI-driven analytics, Mason lets you point your existing Postgres queries at it with confidence. Try it in minutes with the CLI or Mason Cloud Free.

Same SQL, same answer, 81× faster.
  1. aleda145

    Cool! DuckDB is awesome

    I'm very curious with the use case, why do you need to run analytical queries against the postgres read replica? Why not read the WAL and CDC them elsewhere? Especially if it's adhoc then the (short) delay wouldn't be noticeable.

    Also did you tried transpiling SQL if you wanted to match the postgres dialect? I've had great success with duckdb <=> postgres using https://github.com/tobilg/polyglot

  2. pratikgcet1985

    This is really good! We are an avid user of ClickHouse and this is awesome work.

  3. hum3hum3

    I did something sort of similar which is to rewrite postgres so that I could use it against a single file sqlite DB and run in a browser with WASM. https://github.com/drummonds/go-postgres

More from this day

2026-11-24