From 6bb51348b00c81243cf3532cf4ca97f728e3ffe8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 12 Jan 2005 16:19:51 +0000 Subject: [PATCH] =?utf8?q?Ensure=20that=20the=20test=20postmaster=20starte?= =?utf8?q?d=20by=20'make=20check'=20listens=20to=20as=20few=20'listen=5Fad?= =?utf8?q?dresses'=20as=20possible=20---=20on=20most=20systems,=20none=20a?= =?utf8?q?t=20all,=20just=20the=20Unix=20socket.=20=20This=20avoids=20spur?= =?utf8?q?ious=20check=20failures=20due=20to=20bogus=20DNS=20setups,=20and?= =?utf8?q?=20is=20probably=20a=20good=20idea=20from=20a=20security=20stand?= =?utf8?q?point=20anyway.=20Per=20trouble=20report=20from=20Jean-G=C3=85ra?= =?utf8?q?rd=20Pailloncy.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/test/regress/pg_regress.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh index 15d475a033..344653958f 100644 --- a/src/test/regress/pg_regress.sh +++ b/src/test/regress/pg_regress.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.51 2004/12/12 15:34:15 petere Exp $ +# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.52 2005/01/12 16:19:51 tgl Exp $ me=`basename $0` : ${TMPDIR=/tmp} @@ -417,7 +417,11 @@ then message "starting postmaster" [ "$debug" = yes ] && postmaster_options="$postmaster_options -d 5" - [ "$unix_sockets" = no ] && postmaster_options="$postmaster_options -i" + if [ "$unix_sockets" = no ]; then + postmaster_options="$postmaster_options -c listen_addresses=$hostname" + else + postmaster_options="$postmaster_options -c listen_addresses=''" + fi "$bindir/postmaster" -D "$PGDATA" -F $postmaster_options >"$LOGDIR/postmaster.log" 2>&1 & postmaster_pid=$! -- 2.40.0