forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8e1e827
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 parent31e0349 commit8e1e827
1 file changed
+28
-21
lines changedLines changed: 28 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6776 | 6776 |
| |
6777 | 6777 |
| |
6778 | 6778 |
| |
6779 |
| - | |
6780 |
| - | |
6781 |
| - | |
6782 |
| - | |
6783 |
| - | |
6784 |
| - | |
6785 |
| - | |
6786 |
| - | |
6787 |
| - | |
6788 |
| - | |
6789 |
| - | |
6790 |
| - | |
6791 |
| - | |
6792 |
| - | |
6793 |
| - | |
6794 |
| - | |
6795 |
| - | |
6796 |
| - | |
6797 |
| - | |
6798 |
| - | |
6799 |
| - | |
6800 | 6779 |
| |
6801 | 6780 |
| |
6802 | 6781 |
| |
| |||
7176 | 7155 |
| |
7177 | 7156 |
| |
7178 | 7157 |
| |
| 7158 | + | |
| 7159 | + | |
| 7160 | + | |
| 7161 | + | |
| 7162 | + | |
| 7163 | + | |
| 7164 | + | |
| 7165 | + | |
| 7166 | + | |
| 7167 | + | |
| 7168 | + | |
| 7169 | + | |
| 7170 | + | |
| 7171 | + | |
| 7172 | + | |
| 7173 | + | |
| 7174 | + | |
| 7175 | + | |
| 7176 | + | |
| 7177 | + | |
| 7178 | + | |
| 7179 | + | |
| 7180 | + | |
| 7181 | + | |
| 7182 | + | |
| 7183 | + | |
| 7184 | + | |
| 7185 | + | |
7179 | 7186 |
| |
7180 | 7187 |
| |
7181 | 7188 |
| |
|
0 commit comments
Comments
(0)