mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +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:
@ -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"
|
||||
|
Reference in New Issue
Block a user