forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcf8a489
committed
Allow WAL summarization to back up when timeline changes.
The old code believed that it was not possible to switch timelineswithout first replaying all of the WAL from the old timeline, butthat turns out to be false, as demonstrated by an example from FujiiMasao. As a result, it assumed that summarization would alwayscontinue from the LSN where summarization previously ended. But infact, when a timeline switch occurs without replaying all the WALfrom the previous timeline, we can need to back up to an earlierLSN. Adjust accordingly.Discussion:https://postgr.es/m/CA+TgmoZGEsZodXC4f=XZNkAeyuDmWTSkpkjCEOcF19Am0mt_OA@mail.gmail.com1 parent857df3c commitcf8a489
1 file changed
+19
-13
lines changedLines changed: 19 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
388 | 388 |
| |
389 | 389 |
| |
390 | 390 |
| |
391 |
| - | |
| 391 | + | |
| 392 | + | |
392 | 393 |
| |
393 | 394 |
| |
394 | 395 |
| |
| 396 | + | |
395 | 397 |
| |
| 398 | + | |
| 399 | + | |
| 400 | + | |
396 | 401 |
| |
397 | 402 |
| |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
398 | 412 |
| |
399 | 413 |
| |
400 | 414 |
| |
| |||
415 | 429 |
| |
416 | 430 |
| |
417 | 431 |
| |
418 |
| - | |
419 | 432 |
| |
420 | 433 |
| |
421 | 434 |
| |
| |||
1060 | 1073 |
| |
1061 | 1074 |
| |
1062 | 1075 |
| |
1063 |
| - | |
1064 | 1076 |
| |
1065 | 1077 |
| |
1066 | 1078 |
| |
| |||
1460 | 1472 |
| |
1461 | 1473 |
| |
1462 | 1474 |
| |
1463 |
| - | |
1464 |
| - | |
1465 |
| - | |
1466 |
| - | |
1467 |
| - | |
1468 |
| - | |
1469 |
| - | |
1470 |
| - | |
1471 |
| - | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
1472 | 1479 |
| |
1473 |
| - | |
1474 | 1480 |
| |
1475 | 1481 |
| |
1476 | 1482 |
| |
|
0 commit comments
Comments
(0)