Re: pg_upgrade and PGPORT

Peter Eisentraut <peter_e@gmx.net>

From: Peter Eisentraut <peter_e@gmx.net>
To: Bruce Momjian <bruce@momjian.us>
Cc: Robert Haas <robertmhaas@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2011-05-12T05:22:36Z
Lists: pgsql-hackers
On ons, 2011-05-11 at 18:36 -0400, Bruce Momjian wrote:
> Robert Haas wrote:
> > On Wed, May 11, 2011 at 2:18 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > > Or you could just "unsetenv" instead of complaining.
> > 
> > +1 for that.
> 
> OK, the attached patch does this, but allows PGCLIENTENCODING to be
> passed in.  The new output looks like:
> 
> 	Performing Consistency Checks
> 	-----------------------------
> 	ignoring libpq environment variable PGPORT

I haven't tried it, but I suppose option.c will now make use of PGPORT
and then later you get that message that it was ignored?