summaryrefslogtreecommitdiff
path: root/temp-postgres.1
blob: caf4b7801baa4fee94532282e622c214f4128d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.\" Copyright (c) 2022 Stefan Kreutz <mail@skreutz.com>
.\"
.\" 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: May 19 2022 $
.Dt TEMP-POSTGRES 1
.Os
.Sh NAME
.Nm temp-postgres
.Nd temporary PostgreSQL server
.Sh SYNOPSIS
.Nm temp-postgres
.Ar database
.Ar superuser
.Sh DESCRIPTION
The
.Nm
utility runs the PostgreSQL server off a temporary data directory.
.Pp
It expects exactly two arguments:
a
.Ar database
name
and a
.Ar superuser
name.
You may also set the port using PGPORT, see
.Xr postgres 1 .
.Sh EXIT STATUS
.Ex -std temp-postgres
.Sh EXAMPLES
Create a temporary database "test" with superuser "alex":
.Bd -literal -offset indent
$ temp-postgres test 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
Generated by cgit. See skreutz.com for my tech blog and contact information.