forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9cd6685
committed
In the checkpoint written at the end of archive recovery, the WAL page header
was incorrectly initialized with timeline ID 0. That rendered the WAL pageunrecoverable, making a subsequent archive recovery stop at that point.ThisTimeLineID needs to be initialized before calling AdvanceXLInsertBuffer().This fixes bug #5011 reported by James Bardin. Backpatch to 8.4, as the bugwas introduced by the changes to use of bgwriter for writing theend-of-archive-recovery checkpoint. Patch by Tom Lane.1 parenta814170 commit9cd6685
1 file changed
+12
-15
lines changedLines changed: 12 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
6444 | 6444 |
| |
6445 | 6445 |
| |
6446 | 6446 |
| |
| 6447 | + | |
| 6448 | + | |
| 6449 | + | |
| 6450 | + | |
| 6451 | + | |
| 6452 | + | |
| 6453 | + | |
| 6454 | + | |
| 6455 | + | |
| 6456 | + | |
| 6457 | + | |
6447 | 6458 |
| |
6448 | 6459 |
| |
6449 | 6460 |
| |
| |||
6566 | 6577 |
| |
6567 | 6578 |
| |
6568 | 6579 |
| |
6569 |
| - | |
6570 |
| - | |
6571 |
| - | |
6572 |
| - | |
6573 |
| - | |
6574 |
| - | |
6575 |
| - | |
6576 |
| - | |
6577 |
| - | |
6578 |
| - | |
6579 |
| - | |
6580 |
| - | |
6581 |
| - | |
6582 |
| - | |
6583 | 6580 |
| |
6584 | 6581 |
| |
6585 | 6582 |
| |
|
0 commit comments
Comments
(0)