diff options
| author | Stefan Kreutz <mail@skreutz.com> | 2026-04-16 01:33:50 +0200 |
|---|---|---|
| committer | Stefan Kreutz <mail@skreutz.com> | 2026-04-16 01:33:50 +0200 |
| commit | d07eaac0131f81db0dbacfbdae211e89254e2a05 (patch) | |
| tree | 30ac50929a59d59f2f063eb702f3f910e7e41108 | |
| parent | c3eb3d7264fd77ef88320251f910accd6df8164a (diff) | |
| download | temp-postgres-d07eaac0131f81db0dbacfbdae211e89254e2a05.tar.gz | |
Listen on UNIX domain socket only
This is a breaking change.
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rwxr-xr-x | temp-postgres.sh | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index c39b236..a546a2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ The format is based on [Keep A Changelog][] and this project adheres to [Semanti ### Changed * Turned required arguments `dbname` and `username` into optional flags `--dbname` resp. `--username` +* Listen on UNIX domain socket only to enable multiple running instances * Ported to Arch Linux * Ported to FreeBSD diff --git a/temp-postgres.sh b/temp-postgres.sh index 96f90d2..e9a901c 100755 --- a/temp-postgres.sh +++ b/temp-postgres.sh @@ -81,7 +81,7 @@ initdb --pgdata="${tmpdir}" --username="${username}" || { } # Serve the directory -( postgres -k "${tmpdir}" -D "${tmpdir}" </dev/null ) & +( postgres -h "" -k "${tmpdir}" -D "${tmpdir}" </dev/null ) & postgres_pid=$! # Test the connection |