pg_upgrade and PGPORT - Mailing list pgsql-hackers

From Peter Eisentraut
Subject pg_upgrade and PGPORT
Date
Msg-id 1305135398.8811.2.camel@vanquo.pezone.net
Whole thread Raw
Responses Re: pg_upgrade and PGPORT
List pgsql-hackers
pg_upgrade is a bit schizophrenic concerning the PGPORT environment
variable.  On the one hand, there is this code in option.c that wants to
make use of it:
   old_cluster.port = getenv("PGPORT") ? atoi(getenv("PGPORT")) : DEF_PGPORT;   new_cluster.port = getenv("PGPORT") ?
atoi(getenv("PGPORT")): DEF_PGPORT;
 
On the other hand, check.c will reject a set PGPORT because it's a libpq
environment variable.  Should we make an exception for PGPORT, like we
did for PGCLIENTENCODING?




pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Standbys which don't synch to disk?
Next
From: Simon Riggs
Date:
Subject: Re: hint bit cache v5