pg_upgrade test picks up unwanted environment values - Mailing list pgsql-hackers

From Andrew Dunstan
Subject pg_upgrade test picks up unwanted environment values
Date
Msg-id 50B61E2E.6010409@dunslane.net
Whole thread Raw
List pgsql-hackers
I noticed yesterday while doing some buildfarm tinkering that the test 
script for pg_upgrade doesn't unset various important environment values 
as pg_regress does. This can cause it to fail e.g. is PGUSER is set, as 
it was with my testing.

I propose to add this to the script unless there are objections:
   unset PGDATABASE   unset PGUSER   unset PGSERVICE   unset PGSSLMODE   unset PGREQUIRESSL   unset PGCONNECT_TIMEOUT
unsetPGHOST   unset PGHOSTADDR
 


cheers

andrew



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Further pg_upgrade analysis for many tables
Next
From: Alvaro Herrera
Date:
Subject: Re: Review: Extra Daemons / bgworker