In pg_upgrade, pull the port number from postmaster.pid, like we do for
Bruce Momjian <bruce@momjian.us>
In pg_upgrade, pull the port number from postmaster.pid, like we do for socket location. Also, prevent putting the socket in the current directory for pre-9.1 servers in live check and non-live check mode, because pre-9.1 pg_ctl -w can't handle it. Backpatch to 9.2.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_upgrade/check.c | modified | +10 −6 |
| contrib/pg_upgrade/option.c | modified | +50 −34 |
| contrib/pg_upgrade/pg_upgrade.c | modified | +2 −1 |