From: Tom Lane Date: Thu, 7 Aug 2003 14:36:31 +0000 (+0000) Subject: Remove unnecessary use of multiple cat processes to feed psql; this X-Git-Tag: REL7_4_BETA2~155 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b830e933c013209da0150ecab11c7b15bfa5fe63;p=thirdparty%2Fpostgresql.git Remove unnecessary use of multiple cat processes to feed psql; this reduces the number of concurrent processes launched during parallel regression tests, possibly avoiding failures such as exceeding a user's max number of processes. This essentially completes the reversion of 1.27->1.28. --- diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh index a229fa46ee9..89eca958665 100644 --- a/src/test/regress/pg_regress.sh +++ b/src/test/regress/pg_regress.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.34 2003/07/31 19:20:41 tgl Exp $ +# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.35 2003/08/07 14:36:31 tgl Exp $ me=`basename $0` : ${TMPDIR=/tmp} @@ -428,7 +428,7 @@ fi # Set up SQL shell for the test. # ---------- -PSQL="$bindir/psql -q -X $psql_options" +PSQL="$bindir/psql -a -q -X $psql_options" # ---------- @@ -552,22 +552,13 @@ do # Run a single test formatted=`echo $1 | awk '{printf "%-20.20s", $1;}'` $ECHO_N "test $formatted ... $ECHO_C" - - (cat <"$outputdir/results/$1.out" 2>&1 + $PSQL -d "$dbname" <"$inputdir/sql/$1.sql" >"$outputdir/results/$1.out" 2>&1 else # Start a parallel group $ECHO_N "parallel group ($# tests): $ECHO_C" for name do ( - (cat <"$outputdir/results/$name.out" 2>&1 + $PSQL -d "$dbname" <"$inputdir/sql/$name.sql" >"$outputdir/results/$name.out" 2>&1 $ECHO_N " $name$ECHO_C" ) & done