forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit424cc31
committed
Install recycled WAL segments with current timeline ID during recovery.
This is a follow-up to the earlier fix, which changed the recycling logicto recycle WAL segments under the current recovery target timeline. Thatturns out to be a bad idea, because installing a recycled segment witha TLI higher than what we're recovering at the moment means that the recoverylogic will find the recycled WAL segment and try to replay it. It will fail,but but the mere presence of such a WAL segment will mask any other, real,file with the same log/seg, but smaller TLI.Per report from Mitsumasa Kondo. Apply to 9.1 and 9.2, like the previousfix. Master was already doing this differently; this patch makes 9.1 and9.2 to do the same thing as master.1 parent9364134 commit424cc31
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8261 | 8261 |
| |
8262 | 8262 |
| |
8263 | 8263 |
| |
8264 |
| - | |
8265 |
| - | |
| 8264 | + | |
| 8265 | + | |
| 8266 | + | |
| 8267 | + | |
| 8268 | + | |
| 8269 | + | |
| 8270 | + | |
| 8271 | + | |
8266 | 8272 |
| |
8267 |
| - | |
| 8273 | + | |
| 8274 | + | |
| 8275 | + | |
8268 | 8276 |
| |
8269 | 8277 |
| |
8270 | 8278 |
| |
|
0 commit comments
Comments
(0)