From efc53fc97e913f8da47c8f54cffbd9a837f137bb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Mar 2024 14:36:49 +0100 Subject: support pg < 16 --- src/auditor/test-auditor.sh | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'src') 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" < "$TMPDIR/pg_hba.conf.new" -- cgit v1.2.3