mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
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.
This commit is contained in:
parent
8b1ea2f58b
commit
d7d7d7fa99
@ -1,5 +1,5 @@
|
|||||||
#! /bin/sh
|
#! /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`
|
me=`basename $0`
|
||||||
: ${TMPDIR=/tmp}
|
: ${TMPDIR=/tmp}
|
||||||
@ -288,6 +288,10 @@ then
|
|||||||
PGPORT=65432
|
PGPORT=65432
|
||||||
export PGPORT
|
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
|
# Set up shared library paths, needed by psql and pg_encoding
|
||||||
# (if you run multibyte). LD_LIBRARY_PATH covers many platforms,
|
# (if you run multibyte). LD_LIBRARY_PATH covers many platforms,
|
||||||
|
Loading…
Reference in New Issue
Block a user