- Notifications
You must be signed in to change notification settings - Fork5
Commit9d23a70
committed
pg_dump: get rid of die_horribly
The old code was using exit_horribly or die_horribly other depending onwhether it had an ArchiveHandle on which to close the connection or not;but there were places that were passing a NULL ArchiveHandle todie_horribly, and other places that used exit_horribly while having anAH available. So there wasn't all that much consistency.Improve the situation by keeping only one of the routines, and insteadof having to pass the AH down from the caller, arrange for it to bepresent for an on_exit_nicely callback to operate on.Author: Joachim WielandSome tweaks by mePer a suggestion from Robert Haas, in the ongoing "parallel pg_dump"saga.1 parentb251cf3 commit9d23a70
File tree
12 files changed
+409
-327
lines changed- src/bin/pg_dump
12 files changed
+409
-327
lines changedLines changed: 17 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
256 | 256 |
| |
257 | 257 |
| |
258 | 258 |
| |
259 |
| - | |
260 |
| - | |
| 259 | + | |
| 260 | + | |
261 | 261 |
| |
262 | 262 |
| |
263 | 263 |
| |
| |||
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
277 |
| - | |
278 |
| - | |
| 277 | + | |
| 278 | + | |
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
| |||
295 | 295 |
| |
296 | 296 |
| |
297 | 297 |
| |
298 |
| - | |
299 |
| - | |
300 |
| - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
| |||
318 | 318 |
| |
319 | 319 |
| |
320 | 320 |
| |
321 |
| - | |
| 321 | + | |
322 | 322 |
| |
323 | 323 |
| |
324 | 324 |
| |
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
364 |
| - | |
365 |
| - | |
| 364 | + | |
| 365 | + | |
366 | 366 |
| |
367 | 367 |
| |
368 | 368 |
| |
| |||
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
380 |
| - | |
381 |
| - | |
| 380 | + | |
| 381 | + | |
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
385 | 385 |
| |
386 | 386 |
| |
387 | 387 |
| |
388 |
| - | |
389 |
| - | |
| 388 | + | |
| 389 | + | |
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
| |||
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
429 |
| - | |
430 |
| - | |
431 |
| - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
432 | 432 |
| |
433 | 433 |
| |
434 | 434 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
| |||
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| 63 | + | |
62 | 64 |
| |
63 | 65 |
| |
64 | 66 |
| |
| |||
1320 | 1322 |
| |
1321 | 1323 |
| |
1322 | 1324 |
| |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
1323 | 1329 |
| |
1324 | 1330 |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 |
| - | |
| 8 | + | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 | 12 |
| |
14 |
| - | |
| 13 | + | |
| 14 | + |
0 commit comments
Comments
(0)