forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite43f947
committed
Check if we've reached end-of-backup point also if no redo is required.
If you restored from a backup taken from a standby, and the last record inthe backup is the checkpoint record, ie. there is no redo required exceptfor the checkpoint record, we would fail to notice that we've reached theend-of-backup point, and the database is consistent. The result was anerror "WAL ends before end of online backup". To fix, move thehave-we-reached-end-of-backup check into CheckRecoveryConsistency(), whichis already responsible for similar checks with minRecoveryPoint, and iscalled in the right places.Backpatch to 9.2, this check and bug did not exist before that.1 parentf2b8808 commite43f947
1 file changed
+28
-21
lines changedLines changed: 28 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5963 | 5963 |
| |
5964 | 5964 |
| |
5965 | 5965 |
| |
5966 |
| - | |
5967 |
| - | |
5968 |
| - | |
5969 |
| - | |
5970 |
| - | |
5971 |
| - | |
5972 |
| - | |
5973 |
| - | |
5974 |
| - | |
5975 |
| - | |
5976 |
| - | |
5977 |
| - | |
5978 |
| - | |
5979 |
| - | |
5980 |
| - | |
5981 |
| - | |
5982 |
| - | |
5983 |
| - | |
5984 |
| - | |
5985 |
| - | |
5986 |
| - | |
5987 | 5966 |
| |
5988 | 5967 |
| |
5989 | 5968 |
| |
| |||
6390 | 6369 |
| |
6391 | 6370 |
| |
6392 | 6371 |
| |
| 6372 | + | |
| 6373 | + | |
| 6374 | + | |
| 6375 | + | |
| 6376 | + | |
| 6377 | + | |
| 6378 | + | |
| 6379 | + | |
| 6380 | + | |
| 6381 | + | |
| 6382 | + | |
| 6383 | + | |
| 6384 | + | |
| 6385 | + | |
| 6386 | + | |
| 6387 | + | |
| 6388 | + | |
| 6389 | + | |
| 6390 | + | |
| 6391 | + | |
| 6392 | + | |
| 6393 | + | |
| 6394 | + | |
| 6395 | + | |
| 6396 | + | |
| 6397 | + | |
| 6398 | + | |
| 6399 | + | |
6393 | 6400 |
| |
6394 | 6401 |
| |
6395 | 6402 |
| |
|
0 commit comments
Comments
(0)