pg_mentat 1.3.0 is a PostgreSQL extension written in Rust (via pgrx) that brings Datomic's data model into PostgreSQL. It implements immutable facts (datoms), a full Datalog query compiler, the Pull API, time travel (as-of, since, history), ACID transactions, and GDPR-compliant excision — all running inside PostgreSQL 13–18. Version 1.3.0 adds soft integrations with extensions like pgvector, pg_trgm, fuzzystrmatch, PostGIS, and others via Datalog where-fns that activate automatically when those extensions are present. An optional companion daemon (mentatd) speaks the Datomic client wire protocol over HTTP. Key use cases include knowledge graphs joined with relational data, schema-as-data queryable via Datalog, audit/time-travel without triggers, and speculative transactions. The project is positioned as an alternative to hosted Datalog stores like Datomic or XTDB for teams already standardized on PostgreSQL.
Table of contents
HighlightsWhy have EDN and Datalog next to relational tables?How pg_mentat fits among the alternativesA note for the Datomic / Mentat / Datalog communityQuick startA note on stability and feedbackLinksSort: