
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.
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.

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.
curl -sL -o minipg.zip https://github.com/progrium/minipg/releases/download/v0.3/minipg_0.3_linux_amd64.zipunzip -o minipg.zip./minipg -vThe 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.
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.

./minipg init demo.pgdbThe 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.
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.
./minipg demo.pgdb "select version();"./minipg status demo.pgdbThe 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.
./minipg demo.pgdb "create table tools (name text, lang text);"./minipg demo.pgdb "insert into tools values ('minipg', 'zig');"./minipg demo.pgdb "select * from tools;"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.
./minipg url demo.pgdbThe sandbox output was postgres://postgres:***@127.0.0.1:54429/demo, where the tool itself masks the password and it is never shown.
dump prints standard pg_dump output you can restore anywhere, and stop shuts the server down while the folder stays put.

./minipg dump demo.pgdb./minipg stop demo.pgdbThe 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.
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.