forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4bd0ad9
committed
Prevent archive recovery from scanning non-existent WAL files.
Previously when there were multiple timelines listed in the history fileof the recovery target timeline, archive recovery searched all of them,starting from the newest timeline to the oldest one, to find the segmentto read. That is, archive recovery had to continuously fail scanningthe segment until it reached the timeline that the segment belonged to.These scans for non-existent segment could be harmful on the recoveryperformance especially when archival area was located on the remotestorage and each scan could take a long time.To address the issue, this commit changes archive recovery so thatit skips scanning the timeline that the segment to read doesn't belong to.Author: Kyotaro Horiguchi, tweaked a bit by Fujii MasaoReviewed-by: David Steele, Pavel Suderevsky, Grigory SmolkinDiscussion:https://postgr.es/m/16159-f5a34a3a04dc67e0@postgresql.orgDiscussion:https://postgr.es/m/20200129.120222.1476610231001551715.horikyota.ntt@gmail.com1 parentba3e76c commit4bd0ad9
1 file changed
+26
-1
lines changedLines changed: 26 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3776 | 3776 |
| |
3777 | 3777 |
| |
3778 | 3778 |
| |
3779 |
| - | |
| 3779 | + | |
| 3780 | + | |
3780 | 3781 |
| |
3781 | 3782 |
| |
3782 | 3783 |
| |
3783 | 3784 |
| |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
| 3808 | + | |
3784 | 3809 |
| |
3785 | 3810 |
| |
3786 | 3811 |
| |
|
0 commit comments
Comments
(0)