S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
self-hosting 2026-11-26

Install minipg 0.3: PostgreSQL With No Server (Ubuntu)

This companion guide starts from the video Install minipg 0.3: PostgreSQL With No Server (Ubuntu), a 101-second walkthrough that installs minipg 0.3 on Ubuntu 24.04 from the official release zip, creates a folder-database with init, runs SQL against it, and backs it up with dump. The steps below follow the video order and match a sandbox run proven on Ubuntu 24.04 x86_64 on 2026-11-26, with commands and outputs quoted from the production notes.

Note the video discloses that its terminal scenes are simulated recreations of a real test run, not live footage. I did not re-run these steps while writing this guide, so treat every step below as untested on your machine until you verify it yourself.

Get the official release

minipg packs PostgreSQL 18 into one static file, so there is no server to configure, no Docker, and no root needed. A .pgdb folder is the database. Get version 0.3 from the official release tag in the progrium minipg repo, which is MIT licensed. You need 64-bit Ubuntu and about 30 MB of download.

Video still showing the progrium minipg GitHub repo header on a white card captioned as the source, with badges for 64-bit Ubuntu, about 30 MB download, and no root
Video still showing the progrium minipg GitHub repo header on a white card captioned as the source, with badges for 64-bit Ubuntu, about 30 MB download, and no root (Still from the walkthrough video.)

The zip is 28783711 bytes and unzips to a single 40215624-byte minipg binary that is executable out of the zip. These commands are the sandbox-proven path.

The version check reports minipg 0.3. The sandbox guest needed curl and unzip installed via apt, but stock Ubuntu Desktop ships both, so treat that detour as untested on a standard desktop.

Create the folder database

init creates a demo.pgdb folder holding minipg.toml with settings and the generated superuser password plus a plain Postgres data dir in pgdata. The password file has mode 600 and is never displayed. A server starts when a command needs one and stops on its own after 60 idle seconds.

Simulated terminal still showing minipg init demo.pgdb unpacking Postgres 18.6 with a created demo.pgdb confirmation, with the on-screen note that the download was shortened
Simulated terminal still showing minipg init demo.pgdb unpacking Postgres 18.6 with a created demo.pgdb confirmation, with the on-screen note that the download was shortened (Still from the walkthrough video.)

The first run unpacks Postgres 18.6 into the local cache once, which took about 22 seconds on the bench, then reports created demo.pgdb (Postgres 18.6, database demo). Later runs reuse the cache. The bench ran without /dev/kvm, so it exercised the native backend path, and the KVM path is untested here even though both use the same static binary.

Run SQL against it

Pass a statement in quotes to run it. The version query returns real Postgres 18.6, and status shows the server listening on localhost with zero clients. Your port will differ because ports are random per database.

The sandbox run returned PostgreSQL 18.6 on x86_64-pc-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit with 1 row, and status showed running Postgres 18.6 on 127.0.0.1:54429 with 0 clients and idle stop after 60 seconds. It takes normal SQL, so create a table, add a row, and read it back.

The round trip returned one row reading minipg and zig. Then url prints a Postgres connection string with the password starred out, ready for an app.

The sandbox output was postgres://postgres:***@127.0.0.1:54429/demo, where the tool itself masks the password and it is never shown.

Back it up and stop

dump prints standard pg_dump output you can restore anywhere, and stop shuts the server down while the folder stays put.

Simulated terminal still showing the masked connection URL on a random port plus the Postgres 18.6 dump header and the stopped confirmation, with the on-screen note that output was recreated from the test run and the dump shortened
Simulated terminal still showing the masked connection URL on a random port plus the Postgres 18.6 dump header and the stopped confirmation, with the on-screen note that output was recreated from the test run and the dump shortened (Still from the walkthrough video.)

The sandbox dump opened with Dumped from database version 18.6 and the minipg and zig rows, shown shortened here, and stop answered demo.pgdb: stopped. versions reports embedded 18.6, and other Postgres majors download on demand, which is untested here. One warning from the project docs: this is early software, so do not trust it with data you cannot recreate.

Keep going with Postgres

For a full server install instead of a single file, read PostgreSQL 19 on Ubuntu: Install, Verify, Prove It Works, and for moving older data forward read PostgreSQL 14 Is Dead: Upgrade to 18. Steps and links for minipg itself start from the video description and the project docs.

Watch the walkthrough

Watch on YouTube

Webster the press owl — click to chat