aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-07-31 19:20:41 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-07-31 19:20:41 +0000
commitd7d7d7fa9945d2f3c0b56d33bf6c99920d1b73e8 (patch)
tree754f5ffddadb536dc4c29742a55df3656f0fb328
parent8b1ea2f58b5f6c65a06781250ef38418c20796a1 (diff)
downloadpostgresql-d7d7d7fa9945d2f3c0b56d33bf6c99920d1b73e8.tar.gz
postgresql-d7d7d7fa9945d2f3c0b56d33bf6c99920d1b73e8.zip
When using a temp installation, unset PGUSER and other variables we
might have inherited from the environment that would possibly cause psql to fail to connect to the temp installation properly. Per trouble report from Markus Bertheau 7/1/03.
-rw-r--r--src/test/regress/pg_regress.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh
index e758383ebae..a229fa46ee9 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.33 2003/07/30 17:08:47 tgl Exp $
+# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.34 2003/07/31 19:20:41 tgl Exp $
me=`basename $0`
: ${TMPDIR=/tmp}
@@ -288,6 +288,10 @@ then
PGPORT=65432
export PGPORT
+ # Get rid of environment stuff that might cause psql to misbehave
+ # while contacting our temp installation
+ unset PGDATABASE PGUSER PGSERVICE PGSSLMODE PGREQUIRESSL PGCONNECT_TIMEOUT
+
# ----------
# Set up shared library paths, needed by psql and pg_encoding
# (if you run multibyte). LD_LIBRARY_PATH covers many platforms,