forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7e2b1c0
committed
Make pg_upgrade's test script attempt to select a non-conflicting port.
Previously, the port number used in this test script was hard-wired atpg_upgrade's default of 50432; which is not so great because parallel buildruns might conflict. Commit3d53173removed this setting for the postmasters started by the script proper(not by pg_upgrade), which didn't do anything to fix that problem and alsoguaranteed a failure if there was a live postmaster at the build's defaultport number. Instead, select a non-conflicting temporary port number inthe same way that pg_regress.c does. (Its method isn't entirelybulletproof, but given the lack of complaints I'm not going to worryabout that today.)In passing, unset MAKEFLAGS and MAKELEVEL to avoid problems with thescript's internal invocations of make, for the same reason pg_regress.cdoes: it could cause problems in a parallel make.1 parentc263f16 commit7e2b1c0
1 file changed
+29
-4
lines changedLines changed: 29 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 |
| |
17 | 22 |
| |
18 | 23 |
| |
| |||
65 | 70 |
| |
66 | 71 |
| |
67 | 72 |
| |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
68 | 79 |
| |
69 | 80 |
| |
70 | 81 |
| |
| |||
74 | 85 |
| |
75 | 86 |
| |
76 | 87 |
| |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
80 | 105 |
| |
81 | 106 |
| |
82 | 107 |
| |
| |||
123 | 148 |
| |
124 | 149 |
| |
125 | 150 |
| |
126 |
| - | |
| 151 | + | |
127 | 152 |
| |
128 | 153 |
| |
129 | 154 |
| |
|
0 commit comments
Comments
(0)