Mason
An open-source read replica that syncs Postgres data to handle analytical queries.
What does it do?
After selecting the Postgres tables and columns to sync, you can maintain the data on demand, through periodic polling, or through logical replication. Mason converts incoming Postgres queries into forms suited to DuckDB, handling operations that read many rows, such as counts, sums, and grouped aggregates. Logins and roles for users or agents can restrict which tables, columns, and rows they can read. Query and sync history is available in the web UI or logs.
Key features
- Sync selected Postgres tables and columns to DuckDB
- Convert existing Postgres queries for execution in DuckDB
- Sync on demand, through periodic polling, or through logical replication
- Restrict readable tables, columns, and rows by role
- Support agent table lookups and queries within their permissions through an MCP server
- View tables, users, and query and sync history in a web UI