.\" Copyright (c) 2022, 2026 Stefan Kreutz .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .Dd $Mdocdate: April 15 2026 $ .Dt TEMP-POSTGRES 1 .Os .Sh NAME .Nm temp-postgres .Nd temporary PostgreSQL server .Sh SYNOPSIS .Nm temp-postgres .Op options .Sh DESCRIPTION The .Nm utility runs the PostgreSQL server off a temporary data directory. .Pp The options are as follows: .Bl -tag -width Ds .It Fl h , -help Print help. .It Fl d , -dbname Ar dbname The PostgreSQL database name. Defaults to the name of the effective user. .It Fl u , -username Ar username The PostgreSQL user name. Defaults to the name of the effective user. .El .Sh EXIT STATUS .Ex -std temp-postgres .Sh EXAMPLES Create a temporary database "test" with superuser "alex": .Bd -literal -offset indent $ temp-postgres --dbname test --username alex .Ed .Pp Connect to the "test" database: .Bd -literal -offset indent $ psql --host=localhost test alex .Ed .Sh SEE ALSO .Xr postgres 1 , .Xr psql 1 .Sh AUTHORS .An Stefan Kreutz Aq Mt mail@skreutz.com