Skip to content- Sources: primary
- Summary: Jeff Lindsay's miniPG takes a directory path and runs queries against it at once, and it can also serve Postgres on a port or launch a program with connection environment variables set. PGlite, Postgres compiled to WebAssembly, allows only one connection, so apps that open a second connection inside a transaction deadlocked. Booting Postgres in a v86 x86 emulator inside a headless webview worked but took 7 seconds to accept connections. Running it on Hyper9, which translates system APIs to run Plan 9 executables at near native speed, cut startup to 800 ms.
- Why it matters: Tests, local tools and agents can spin up a disposable real Postgres per task without Docker, and an app can ship Postgres embedded the way it would ship SQLite.
- Background: SQLite is an in-process library over a single file, while Postgres is a client-server system with a daemon, a data directory and connection management. The usual local substitute is a Docker container, which adds a VM and a daemon on macOS and Windows. API translation layers such as Wine and Proton run binaries built for one OS on another by mapping system calls, the approach Hyper9 borrows.