11#! /bin/sh
2- # $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.52 2005/01/12 16:19 :51 tgl Exp $
2+ # $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.53 2005/01/15 04:15 :51 tgl Exp $
33
44me=` basename$0 `
55: ${TMPDIR=/ tmp}
@@ -192,11 +192,10 @@ esac
192192
193193
194194# ----------
195- # When on QNX or BeOS, don 't use Unix sockets.
195+ # On some platforms we can 't use Unix sockets.
196196# ----------
197-
198197case $host_platform in
199- * -* -qnx* |* beos* )
198+ * -* -cygwin * | * - * -mingw32 * | * - * - qnx* |* beos* )
200199 unix_sockets=no;;
201200* )
202201 unix_sockets=yes;;
309308case $host_platform in
310309* -* -mingw32* )
311310 pkglibdir=" ` pwd -W` /$temp_install /install/$pkglibdir "
312- temp_install=" ` pwd` /$temp_install "
311+ temp_install=" ` pwd` /$temp_install "
313312 ;;
314313* )
315314 temp_install=" ` pwd` /$temp_install "
418417 message" starting postmaster"
419418 [" $debug " = yes ]&& postmaster_options=" $postmaster_options -d 5"
420419if [" $unix_sockets " = no ]; then
421- postmaster_options=" $postmaster_options -c listen_addresses=$hostname "
420+ postmaster_options=" $postmaster_options -c listen_addresses=$hostname "
422421else
423- postmaster_options=" $postmaster_options -c listen_addresses=''"
422+ postmaster_options=" $postmaster_options -c listen_addresses=''"
424423fi
425424" $bindir /postmaster" -D" $PGDATA " -F$postmaster_options > " $LOGDIR /postmaster.log" 2>&1 &
426425 postmaster_pid=$!
@@ -470,13 +469,6 @@ else # not temp-install
470469 ;;
471470esac
472471
473- # If Unix sockets are not available, use the local host by default.
474- if [" $unix_sockets " = no ]; then
475- PGHOST=$hostname
476- export PGHOST
477- unset PGHOSTADDR
478- fi
479-
480472if [-n " $PGPORT " ]; then
481473 port_info=" port$PGPORT "
482474else
@@ -486,15 +478,13 @@ else # not temp-install
486478if [-n " $PGHOST " ]; then
487479echo " (using postmaster on$PGHOST ,$port_info )"
488480else
489- case $host_platform in
490- * -* -mingw32* )
491- echo " (using postmaster on localhost socket,$port_info )"
492- ;;
493- * )
494- echo " (using postmaster on Unix socket,$port_info )"
495- ;;
496- esac
481+ if [" $unix_sockets " = no ]; then
482+ echo " (using postmaster on localhost,$port_info )"
483+ else
484+ echo " (using postmaster on Unix socket,$port_info )"
485+ fi
497486fi
487+
498488 message" dropping database\" $dbname \" "
499489" $bindir /dropdb" $psql_options " $dbname "
500490# errors can be ignored
634624 formatted=` echo$1 | awk' {printf "%-20.20s", $1;}' `
635625$ECHO_N " test$formatted ...$ECHO_C "
636626 ($PSQL -d" $dbname " < " $inputdir /sql/$1 .sql" > " $outputdir /results/$1 .out" 2>&1 )&
637- wait
627+ wait
638628else
639629# Start a parallel group
640630$ECHO_N " parallel group ($# tests):$ECHO_C "