{
  "id": 21100873,
  "title": "How I Got Postgres into a Single Binary",
  "url": "https://urgent.news/2026/11/21/how-i-got-postgres-into-a-single-binary",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-21T19:32:22.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://progrium.xyz/articles/2026/single-binary-postgres"
  },
  "original_language": "en",
  "account": "MiniPG is a project that aims to bring the simplicity of SQLite to the Postgres world. It is a single executable that embeds a full Postgres server and client, allowing users to interact with it in the same way they would with sqlite3. Unlike Postgres, which is a client-server database, miniPG provides a standalone binary that can be launched directly from the command line. To use miniPG, users simply point it at a directory, and that directory becomes the database. Queries can be run against this database without any additional setup or configuration.\n\nThe main difference between miniPG and a traditional Postgres setup is that miniPG does not require a separate server process to be running in the background. This means that there is no server to start, no configuration to be done, and no daemon to keep track of. When the program using miniPG terminates, the database is just files on disk, ready to be used again next time. This approach makes it much easier to try out Postgres for software that previously relied on SQLite, without the need for additional dependencies like Docker or a virtual machine.\n\nThe idea behind miniPG originated from several attempts to embed real Postgres into a standalone, cross-platform binary. The initial approach was based on PGlite, a Postgres compiled to WebAssembly. However, PGlite only supports a single connection and session, which limits its usability for more complex applications. To overcome this limitation, the project moved to a different approach using Hyper9, a system API translation framework combined with hypervisor use. This allowed miniPG to provide a fully functional Postgres server with the performance and usability of a single executable.",
  "summary": null,
  "key_points": [
    "miniPG brings Postgres simplicity to SQLite level with single executable",
    "Users interact with miniPG database via command line without setup",
    "miniPG eliminates need for server process, files become database"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}