summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2026-04-16 01:33:50 +0200
committerStefan Kreutz <mail@skreutz.com>2026-04-16 01:33:50 +0200
commitd07eaac0131f81db0dbacfbdae211e89254e2a05 (patch)
tree30ac50929a59d59f2f063eb702f3f910e7e41108
parentc3eb3d7264fd77ef88320251f910accd6df8164a (diff)
downloadtemp-postgres-d07eaac0131f81db0dbacfbdae211e89254e2a05.tar.gz
Listen on UNIX domain socket only
This is a breaking change.
-rw-r--r--CHANGELOG.md1
-rwxr-xr-xtemp-postgres.sh2
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
Generated by cgit. See skreutz.com for my tech blog and contact information.