projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e60f0
)
Clean environment for pg_upgrade test.
author
Andrew Dunstan
<
[email protected]
>
Fri, 30 Nov 2012 15:54:46 +0000
(10:54 -0500)
committer
Andrew Dunstan
<
[email protected]
>
Fri, 30 Nov 2012 15:54:46 +0000
(10: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 ffa5a08915021c1101435e33bdf5eb4875f9531d..e9d159e5e80b52ba61fa5c20895d57e5c288a2dc 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"