[0.1.0] - 2026-05-12
Added
PgSpawnerGenServer — starts Postgres as a BEAM-owned child viaPort.open/2, with a shell watchdog that guarantees cleanup on SIGKILL.- Guest mode: joins an already-running Postgres without owning the lifecycle.
:log_fileoption — Postgres output goes to<pgdata>/postgres.logby default instead of the BEAM console. Pass:stdioto restore console output,nilto discard.- OTP Application auto-start — adding
:pg_spawnerto deps is sufficient to start Postgres on app boot. Defaults:port: 15432,pgdata: "priv/db/data". Override viaconfig :pg_spawner, .... Setpgdata: falseto disable. - Auto-
initdb: PgSpawner bootstrapspgdataon first run if noPG_VERSIONis present. No shellHook ceremony required.