mirror of
https://github.com/postgres/postgres.git
synced 2026-06-03 14:00:01 -04:00
Clean environment for pg_upgrade test.
This removes exisiting PG settings from the environment for pg_upgrade tests, just like pg_regress does.
This commit is contained in:
parent
a8e60f0b23
commit
2c55189b2b
1 changed files with 9 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue