forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdc78866
committed
Fail if recovery target is not reached
Before, if a recovery target is configured, but the archive endedbefore the target was reached, recovery would end and the server wouldpromote without further notice. That was deemed to be pretty wrong.With this change, if the recovery target is not reached, it is a fatalerror.Based-on-patch-by: Leif Gunnar Erlandsen <leif@lako.no>Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/993736dd3f1713ec1f63fc3b653839f5@lako.no1 parent29e321c commitdc78866
File tree
4 files changed
+73
-8
lines changed- doc/src/sgml
- src
- backend/access/transam
- test
- perl
- recovery/t
4 files changed
+73
-8
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3571 | 3571 |
| |
3572 | 3572 |
| |
3573 | 3573 |
| |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
3574 | 3579 |
| |
3575 | 3580 |
| |
3576 | 3581 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6200 | 6200 |
| |
6201 | 6201 |
| |
6202 | 6202 |
| |
6203 |
| - | |
| 6203 | + | |
6204 | 6204 |
| |
6205 | 6205 |
| |
6206 | 6206 |
| |
| |||
7103 | 7103 |
| |
7104 | 7104 |
| |
7105 | 7105 |
| |
7106 |
| - | |
| 7106 | + | |
7107 | 7107 |
| |
7108 | 7108 |
| |
7109 | 7109 |
| |
| |||
7258 | 7258 |
| |
7259 | 7259 |
| |
7260 | 7260 |
| |
7261 |
| - | |
| 7261 | + | |
7262 | 7262 |
| |
7263 | 7263 |
| |
7264 | 7264 |
| |
| |||
7270 | 7270 |
| |
7271 | 7271 |
| |
7272 | 7272 |
| |
7273 |
| - | |
| 7273 | + | |
7274 | 7274 |
| |
7275 | 7275 |
| |
7276 | 7276 |
| |
| |||
7327 | 7327 |
| |
7328 | 7328 |
| |
7329 | 7329 |
| |
| 7330 | + | |
7330 | 7331 |
| |
| 7332 | + | |
| 7333 | + | |
| 7334 | + | |
| 7335 | + | |
| 7336 | + | |
| 7337 | + | |
| 7338 | + | |
| 7339 | + | |
| 7340 | + | |
| 7341 | + | |
7331 | 7342 |
| |
7332 | 7343 |
| |
7333 | 7344 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
653 | 653 |
| |
654 | 654 |
| |
655 | 655 |
| |
| 656 | + | |
| 657 | + | |
| 658 | + | |
656 | 659 |
| |
657 | 660 |
| |
658 | 661 |
| |
| |||
669 | 672 |
| |
670 | 673 |
| |
671 | 674 |
| |
| 675 | + | |
672 | 676 |
| |
673 | 677 |
| |
674 | 678 |
| |
| |||
699 | 703 |
| |
700 | 704 |
| |
701 | 705 |
| |
702 |
| - | |
| 706 | + | |
703 | 707 |
| |
704 | 708 |
| |
705 | 709 |
| |
| |||
939 | 943 |
| |
940 | 944 |
| |
941 | 945 |
| |
942 |
| - | |
| 946 | + | |
943 | 947 |
| |
944 | 948 |
| |
945 | 949 |
| |
| |||
961 | 965 |
| |
962 | 966 |
| |
963 | 967 |
| |
964 |
| - | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
965 | 992 |
| |
966 | 993 |
| |
967 | 994 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
145 | 146 |
| |
146 | 147 |
| |
147 | 148 |
| |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + |
0 commit comments
Comments
(0)