Friday, 27 November 2026

Trusted News Discovery โ€“ Powered by AI and Verified by Humans

minipg packs PostgreSQL into a single executable that runs with no Docker, no server setup and no Linux VM

minipg, a new open-source tool, runs PostgreSQL as a single executable with the whole database in one .pgdb folder and no Docker or server setup.

Produced with AI assistance and reviewed by the Badiyaa Editorial Desk. How we work.

Grok Fact CheckCheck it yourself in one tapVerify with Grok ↗Ask @grok on X ↗
Rows of server racks with cabling in a data center (illustrative image).
Image: Carl Lender, CC BY 2.0 via Wikimedia Commons

One file, one folder, a full PostgreSQL database. That is the pitch behind minipg, a new open-source tool from developer Jeff Lindsay that its own tagline sums up as "SQLite and PostgreSQL had a baby."

Type minipg app.pgdb and you land in a psql shell. If the database does not exist yet, minipg makes it. There is no server to configure, no Docker install and no virtual machine image to download, according to the minipg repository on GitHub.

The trick: Postgres without a Linux kernel

Under the hood, minipg bundles Docker Hub's postgres:18-alpine image inside the executable. It then runs those stock Alpine Postgres binaries with hyper9, or h9, an experimental runtime built around a Plan 9 kernel. h9 answers the Linux system calls that Postgres makes, directly on the computer's own hypervisor, so nothing has to boot.

The whole database lives in a directory ending in .pgdb. Inside sit a settings file called minipg.toml, which also stores a generated superuser password, and pgdata, the normal Postgres data folder. A stopped .pgdb can be copied like any other folder. A running one should be backed up with pg_dump, because a raw copy mid-write is not guaranteed to be consistent.

Servers start themselves. Any command that needs Postgres spins one up in the background, back-to-back commands share it, and it shuts down after 60 seconds with no client connections. Helper tools such as psql and pg_dump each run in their own short-lived h9 machine that takes about 90 milliseconds to start, as the project's minipg home page explains.

Why SQLite fans will get it

The comparison to SQLite is deliberate. SQLite's Wikipedia entry describes it as a zero-configuration engine that keeps an entire database in a single cross-platform file, with no separate server process. Its developers even use PostgreSQL as their reference, asking "What would PostgreSQL do" when the SQL standard is unclear.

minipg tries to bring that grab-and-go feel to real Postgres, the server many apps end up on in production. Here is how the two compare on the basics:

  • Storage: SQLite uses one file; minipg uses one .pgdb folder.
  • Server: SQLite has none; minipg starts and stops a real Postgres 18 server for you.
  • Apps: minipg run app.pgdb -- npm start launches your program with DATABASE_URL already set.
  • Testing: a CI job can be just minipg init plus minipg run, with no privileges or devices needed on Linux.

The fine print

Lindsay is blunt about the risks. The README calls h9 a research prototype and warns users not to trust minipg with data they cannot recreate. On Linux without KVM, Postgres runs about 2x slower than native for a single client and 6 to 12 times slower under load, and each new connection costs about 27 milliseconds, so apps that do not pool connections will notice.

Platform support is uneven too. Linux x86_64 and Windows x86_64 have been tested, Linux arm64 builds but has not been run, and macOS on Apple Silicon has not been run. On Windows, every server reserves 2GB of memory up front, so an 8GB machine tops out at three or four servers at once. The first launch also unpacks an embedded Linux root of about 90MB.

minipg arrives a week after Postgres itself made headlines here, when Badiyaa covered the PostgreSQL 19 release and its new repack command and followed up with an explainer on how repack shrinks bloated tables online. minipg embeds Postgres 18 by default, and minipg init --pg 17 downloads other major versions on request.

The code is MIT-licensed, the repository had 168 stars when Badiyaa checked it on November 26, and a browser demo of about 35MB runs on Chrome and Edge from version 137.

Sources

Image: Carl Lender, CC BY 2.0 via Wikimedia Commons

This article was produced with AI assistance and reviewed by our Editorial Desk. How we work.

Grok Fact CheckCheck it yourself in one tapVerify with Grok ↗Ask @grok on X ↗