forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit47e5969
committed
Make pg_dump error cleanly with -j against hot standby
Getting a synchronized snapshot is not supported on a hot standby node,and is by default taken when using -j with multiple sessions. Trying todo so still failed, but with a server error that would also go in thelog. Instead, proprely detect this case and give a better error message.1 parentaa86edb commit47e5969
File tree
4 files changed
+53
-40
lines changed- src/bin/pg_dump
4 files changed
+53
-40
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
| 175 | + | |
175 | 176 |
| |
176 | 177 |
| |
177 | 178 |
| |
|
Lines changed: 38 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
56 | 57 |
| |
57 | 58 |
| |
58 | 59 |
| |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
59 | 74 |
| |
60 | 75 |
| |
61 | 76 |
| |
| |||
388 | 403 |
| |
389 | 404 |
| |
390 | 405 |
| |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
391 | 429 |
| |
392 | 430 |
| |
393 | 431 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
|
Lines changed: 13 additions & 40 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
258 |
| - | |
259 | 258 |
| |
260 | 259 |
| |
261 | 260 |
| |
| |||
647 | 646 |
| |
648 | 647 |
| |
649 | 648 |
| |
650 |
| - | |
651 |
| - | |
| 649 | + | |
| 650 | + | |
652 | 651 |
| |
653 |
| - | |
654 |
| - | |
655 |
| - | |
656 |
| - | |
657 |
| - | |
658 |
| - | |
659 |
| - | |
660 |
| - | |
661 |
| - | |
662 |
| - | |
663 |
| - | |
664 |
| - | |
665 |
| - | |
666 |
| - | |
| 652 | + | |
| 653 | + | |
667 | 654 |
| |
668 | 655 |
| |
669 | 656 |
| |
| |||
1088 | 1075 |
| |
1089 | 1076 |
| |
1090 | 1077 |
| |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1091 | 1086 |
| |
| 1087 | + | |
1092 | 1088 |
| |
1093 | 1089 |
| |
1094 | 1090 |
| |
| |||
16559 | 16555 |
| |
16560 | 16556 |
| |
16561 | 16557 |
| |
16562 |
| - | |
16563 |
| - | |
16564 |
| - | |
16565 |
| - | |
16566 |
| - | |
16567 |
| - | |
16568 |
| - | |
16569 |
| - | |
16570 |
| - | |
16571 |
| - | |
16572 |
| - | |
16573 |
| - | |
16574 |
| - | |
16575 |
| - | |
16576 |
| - | |
16577 |
| - | |
16578 |
| - | |
16579 |
| - | |
16580 |
| - | |
16581 |
| - | |
16582 |
| - | |
16583 |
| - | |
16584 |
| - |
0 commit comments
Comments
(0)