forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3aefff4
committed
Fix pause_at_recovery_target + recovery_target_inclusive combination.
If pause_at_recovery_target is set, recovery pauses *before* applying thetarget record, even if recovery_target_inclusive is set. If you thencontinue with pg_xlog_replay_resume(), it will apply the target recordbefore ending recovery. In other words, if you log in while it's pausedand verify that the database looks OK, ending recovery changes its stateagain, possibly destroying data that you were tring to salvage with PITR.Backpatch to 9.1, this has been broken since pause_at_recovery_target wasadded.1 parent425bef6 commit3aefff4
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5574 | 5574 |
| |
5575 | 5575 |
| |
5576 | 5576 |
| |
5577 |
| - | |
5578 |
| - | |
5579 |
| - | |
5580 |
| - | |
5581 |
| - | |
5582 | 5577 |
| |
5583 | 5578 |
| |
5584 | 5579 |
| |
| |||
5709 | 5704 |
| |
5710 | 5705 |
| |
5711 | 5706 |
| |
| 5707 | + | |
| 5708 | + | |
| 5709 | + | |
| 5710 | + | |
| 5711 | + | |
| 5712 | + | |
5712 | 5713 |
| |
5713 | 5714 |
| |
5714 | 5715 |
| |
|
0 commit comments
Comments
(0)