Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6bb5134

Browse files
committed
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.
1 parent d3d0071 commit 6bb5134

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/test/regress/pg_regress.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.51 2004/12/12 15:34:15 petere Exp $
2+
# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.52 2005/01/12 16:19:51 tgl Exp $
33

44
me=`basename $0`
55
: ${TMPDIR=/tmp}
@@ -417,7 +417,11 @@ then
417417

418418
message "starting postmaster"
419419
[ "$debug" = yes ] && postmaster_options="$postmaster_options -d 5"
420-
[ "$unix_sockets" = no ] && postmaster_options="$postmaster_options -i"
420+
if [ "$unix_sockets" = no ]; then
421+
postmaster_options="$postmaster_options -c listen_addresses=$hostname"
422+
else
423+
postmaster_options="$postmaster_options -c listen_addresses=''"
424+
fi
421425
"$bindir/postmaster" -D "$PGDATA" -F $postmaster_options >"$LOGDIR/postmaster.log" 2>&1 &
422426
postmaster_pid=$!
423427

0 commit comments

Comments
 (0)