diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-12 16:19:51 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-12 16:19:51 +0000 |
commit | 6bb51348b00c81243cf3532cf4ca97f728e3ffe8 (patch) | |
tree | 9783905a3f23f3ff38e258e78f845aa09f9b4c20 | |
parent | d3d00715e21c6ced9fc833d791250a251bc455e1 (diff) | |
download | postgresql-6bb51348b00c81243cf3532cf4ca97f728e3ffe8.tar.gz postgresql-6bb51348b00c81243cf3532cf4ca97f728e3ffe8.zip |
Ensure that the test postmaster started by 'make check' listens to as
few 'listen_addresses' as possible --- on most systems, none at all,
just the Unix socket. This avoids spurious check failures due to bogus
DNS setups, and is probably a good idea from a security standpoint anyway.
Per trouble report from Jean-GĂ…rard Pailloncy.
-rw-r--r-- | src/test/regress/pg_regress.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh index 15d475a033d..344653958f0 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=$! |