Re: pg_upgrade defaulting to port 25432
Bruce Momjian <bruce@momjian.us>
From: Bruce Momjian <bruce@momjian.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Christopher Browne <cbbrowne@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2011-06-24T20:34:33Z
Lists: pgsql-hackers
Attachments
- /rtmp/pg_upgrade (text/x-diff)
Peter Eisentraut wrote: > On tor, 2011-06-23 at 21:39 -0400, Bruce Momjian wrote: > > I have created the following patch which uses 25432 as the default port > > number for pg_upgrade. > > I don't think we should just steal a port from the reserved range. > Picking a random port from the private/dynamic range seems more > appropriate. Oh, I didn't know about that. I will use 50432 instead. > > It also creates two new environment variables, > > OLDPGPORT and NEWPGPORT, to control the port values because we don't > > want to default to PGPORT anymore. > > I would prefer that all PostgreSQL-related environment variables start > with "PG". OK, attached. I was also using environment variables for PGDATA and PGBIN do I renamed those too to begin with 'PG'. Patch attached. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +