forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita66b05b
committed
Update minimum recovery point on truncation during WAL replay of abort record.
If a file is truncated, we must update minRecoveryPoint. Once a file istruncated, there's no going back; it would not be safe to stop recoveryat a point earlier than that anymore.Commit7bffc9b changed xact_redo_commit() so that it updatesminRecoveryPoint on truncation, but forgot to change xact_redo_abort().Back-patch to all supported versions.Reported-by: mengjuan.cmj@alibaba-inc.comAuthor: Fujii MasaoReviewed-by: Heikki LinnakangasDiscussion:https://postgr.es/m/b029fce3-4fac-4265-968e-16f36ff4d075.mengjuan.cmj@alibaba-inc.com1 parentaa1e921 commita66b05b
1 file changed
+14
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5899 | 5899 |
| |
5900 | 5900 |
| |
5901 | 5901 |
| |
5902 |
| - | |
| 5902 | + | |
| 5903 | + | |
5903 | 5904 |
| |
5904 | 5905 |
| |
5905 | 5906 |
| |
| |||
5949 | 5950 |
| |
5950 | 5951 |
| |
5951 | 5952 |
| |
5952 |
| - | |
| 5953 | + | |
| 5954 | + | |
| 5955 | + | |
| 5956 | + | |
| 5957 | + | |
| 5958 | + | |
| 5959 | + | |
| 5960 | + | |
| 5961 | + | |
| 5962 | + | |
5953 | 5963 |
| |
5954 | 5964 |
| |
5955 | 5965 |
| |
| |||
5989 | 5999 |
| |
5990 | 6000 |
| |
5991 | 6001 |
| |
5992 |
| - | |
| 6002 | + | |
5993 | 6003 |
| |
5994 | 6004 |
| |
5995 | 6005 |
| |
5996 | 6006 |
| |
5997 | 6007 |
| |
5998 | 6008 |
| |
5999 | 6009 |
| |
6000 |
| - | |
| 6010 | + | |
6001 | 6011 |
| |
6002 | 6012 |
| |
6003 | 6013 |
| |
|
0 commit comments
Comments
(0)