aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-25 14:36:49 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-25 14:36:49 +0100
commitefc53fc97e913f8da47c8f54cffbd9a837f137bb (patch)
treef21f9bfb23ca94629cdef30e415ac348cce5ca61
parent0be1503f5967826947ff6ba79fb8ac31130489ea (diff)
support pg < 16
-rwxr-xr-xsrc/auditor/test-auditor.sh27
1 files changed, 20 insertions, 7 deletions
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 4eadd447d..d8978c966 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -2221,20 +2221,33 @@ $INITDB_BIN \
--no-sync \
--auth=trust \
-D "${TMPDIR}" \
- --set listen_addresses='' \
- --set fsync=off \
- --set max_wal_senders=0 \
- --set synchronous_commit=off \
- --set wal_level=minimal \
- --set unix_socket_directories="${TMPDIR}/sockets" \
> "${MY_TMP_DIR}/postgres-dbinit.log" \
2> "${MY_TMP_DIR}/postgres-dbinit.err"
echo "DONE"
+
+# Once we move to PG16, we can use:
+# --set listen_addresses='' \
+# --set fsync=off \
+# --set max_wal_senders=0 \
+# --set synchronous_commit=off \
+# --set wal_level=minimal \
+# --set unix_socket_directories="${TMPDIR}/sockets" \
+
+
SOCKETDIR="${TMPDIR}/sockets"
mkdir "${SOCKETDIR}"
echo -n "Launching Postgres service"
-# Unix domain socket is NOT yet supported by libeufin!
+
+cat - >> "$TMPDIR/postgresql.conf" <<EOF
+unix_socket_directories='${TMPDIR}/sockets'
+fsync=off
+max_wal_senders=0
+synchronous_commit=off
+wal_level=minimal
+listen_addresses=''
+EOF
+
grep -v host \
< "$TMPDIR/pg_hba.conf" \
> "$TMPDIR/pg_hba.conf.new"