forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf763b77
committed
Fix pg_upgrade to cope with non-default unix_socket_directory scenarios.
When starting either an old or new postmaster, force it to place its Unixsocket in the current directory. This makes it even harder for accidentalconnections to occur during pg_upgrade, and also works around somescenarios where the default socket location isn't usable. (For example,if the default location is something other than "/tmp", it might not existduring "make check".)When checking an already-running old postmaster, find out its actual socketdirectory location from postmaster.pid, if possible. This dodges problemswith an old postmaster having a configured location different from thedefault built into pg_upgrade's libpq. We can't find that out if the oldpostmaster is pre-9.1, so also document how to cope with such scenariosmanually.In support of this, centralize handling of the connection-related commandline options passed to pg_upgrade's subsidiary programs, such as pg_dump.This should make future changes easier.Bruce Momjian and Tom Lane1 parentc1f3c04 commitf763b77
File tree
7 files changed
+149
-20
lines changed- contrib/pg_upgrade
- doc/src/sgml
7 files changed
+149
-20
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
187 |
| - | |
188 |
| - | |
| 187 | + | |
| 188 | + | |
189 | 189 |
| |
190 | 190 |
| |
191 | 191 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
28 |
| - | |
| 27 | + | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
|
Lines changed: 63 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
| 13 | + | |
12 | 14 |
| |
13 | 15 |
| |
14 | 16 |
| |
| |||
376 | 378 |
| |
377 | 379 |
| |
378 | 380 |
| |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + |
Lines changed: 11 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 |
| |
92 | 95 |
| |
93 | 96 |
| |
| |||
211 | 214 |
| |
212 | 215 |
| |
213 | 216 |
| |
214 |
| - | |
215 |
| - | |
| 217 | + | |
| 218 | + | |
216 | 219 |
| |
217 | 220 |
| |
218 | 221 |
| |
| |||
224 | 227 |
| |
225 | 228 |
| |
226 | 229 |
| |
227 |
| - | |
228 |
| - | |
| 230 | + | |
| 231 | + | |
229 | 232 |
| |
230 | 233 |
| |
231 | 234 |
| |
| |||
261 | 264 |
| |
262 | 265 |
| |
263 | 266 |
| |
264 |
| - | |
265 |
| - | |
| 267 | + | |
| 268 | + | |
266 | 269 |
| |
267 | 270 |
| |
268 | 271 |
| |
| |||
290 | 293 |
| |
291 | 294 |
| |
292 | 295 |
| |
293 |
| - | |
294 |
| - | |
| 296 | + | |
| 297 | + | |
295 | 298 |
| |
296 | 299 |
| |
297 | 300 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| 229 | + | |
229 | 230 |
| |
230 | 231 |
| |
231 | 232 |
| |
| |||
387 | 388 |
| |
388 | 389 |
| |
389 | 390 |
| |
| 391 | + | |
390 | 392 |
| |
391 | 393 |
| |
392 | 394 |
| |
| |||
407 | 409 |
| |
408 | 410 |
| |
409 | 411 |
| |
| 412 | + | |
| 413 | + | |
410 | 414 |
| |
411 | 415 |
| |
412 | 416 |
| |
|
Lines changed: 59 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
| 54 | + | |
55 | 55 |
| |
56 |
| - | |
57 |
| - | |
58 |
| - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 |
| |
60 | 65 |
| |
61 | 66 |
| |
62 | 67 |
| |
63 | 68 |
| |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
64 | 97 |
| |
65 | 98 |
| |
66 | 99 |
| |
| |||
140 | 173 |
| |
141 | 174 |
| |
142 | 175 |
| |
143 |
| - | |
| 176 | + | |
144 | 177 |
| |
145 | 178 |
| |
146 | 179 |
| |
| 180 | + | |
147 | 181 |
| |
148 | 182 |
| |
149 | 183 |
| |
150 | 184 |
| |
151 | 185 |
| |
152 | 186 |
| |
153 | 187 |
| |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
154 | 205 |
| |
155 | 206 |
| |
156 | 207 |
| |
| |||
159 | 210 |
| |
160 | 211 |
| |
161 | 212 |
| |
162 |
| - | |
| 213 | + | |
163 | 214 |
| |
164 | 215 |
| |
165 | 216 |
| |
166 | 217 |
| |
167 |
| - | |
| 218 | + | |
168 | 219 |
| |
169 | 220 |
| |
170 | 221 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
519 | 519 |
| |
520 | 520 |
| |
521 | 521 |
| |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
522 | 530 |
| |
523 | 531 |
| |
524 | 532 |
| |
|
0 commit comments
Comments
(0)