mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03: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
65c3bf19fd
commit
abece8af17
@ -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…
x
Reference in New Issue
Block a user