pgsqlite

PostgreSQL wire protocol server in front of SQLite database files

Implements the PostgreSQL v3 protocol and translates queries onto SQLite, so psql, pgAdmin, DBeaver and existing drivers connect to a plain database file. A test run or feature branch gets its own database by copying that file.

Trade-offs

  • PostgreSQL compatibility over raw speed. Existing tools and ORMs work unchanged, but the translation layer adds overhead, and microsecond-level needs are better met by pure SQLite.
  • One SQLite connection per client session, because SQLAlchemy expects an isolated connection. Isolation improves, and the project's own analysis names it as a source of overhead.
  • SQLite underneath, so one writer at a time. Optional connection pooling sends SELECTs to a read pool and writes to the primary connection.

Q&A3

No. It is experimental, with bugs, incomplete features and breaking changes possible.

Reviews

Loading reviews

    More in Postgres

    See all 25 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • arbiterPostgreSQL job queue for Haskell, with no broker and no leader
    • StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
    • MigrationPilotPostgreSQL migration linter that blocks unsafe DDL before merge
    • go-ledgerMulti-tenant double-entry payment ledger API in Go, built in public
    • pistachioDeclarative PostgreSQL schema management with a plan and apply workflow

    More in SQLite

    See all 22 →
    • MnemosyneLocal-first agent memory in one SQLite file, with evidence on every record
    • FusionalySelf-hosted web analytics in one SQLite file
    • SNKVEmbedded key-value store built directly on SQLite's B-tree
    • musqlSQLite-compatible SQL engine on columnar storage and a JIT
    • ForemergeCoordination protocol that catches intent conflicts between coding agents
    • roam-codeLocal code index and checks that coding agents can query

    More in Rust

    See all 146 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • ai-memoryPersistent memory for MCP clients in one Rust binary over SQLite
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • jc-rsjc rewritten as one static binary that turns command output into JSON