projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65c3bf1
)
Clean environment for pg_upgrade test.
author
Andrew Dunstan
<andrew@dunslane.net>
Fri, 30 Nov 2012 12:54:24 +0000
(07:54 -0500)
committer
Andrew Dunstan
<andrew@dunslane.net>
Fri, 30 Nov 2012 12:54:24 +0000
(07:54 -0500)
This removes exisiting PG settings from the environment for
pg_upgrade tests, just like pg_regress does.
contrib/pg_upgrade/test.sh
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/test.sh
b/contrib/pg_upgrade/test.sh
index 99bd1e2505e642909c66878d14c55997cdfb1ada..fc34aa6f7492f4f34ecf33ab86b71649c2c9fa5f 100644
(file)
--- a/
contrib/pg_upgrade/test.sh
+++ b/
contrib/pg_upgrade/test.sh
@@
-58,6
+58,15
@@
PGDATA=$temp_root/data
export PGDATA
rm -rf "$PGDATA" "$PGDATA".old
+unset PGDATABASE
+unset PGUSER
+unset PGSERVICE
+unset PGSSLMODE
+unset PGREQUIRESSL
+unset PGCONNECT_TIMEOUT
+unset PGHOST
+unset PGHOSTADDR
+
logdir=$PWD/log
rm -rf "$logdir"
mkdir "$logdir"