forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit02ef4d1
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 parentddd1eac commit02ef4d1
1 file changed
+14
-4
lines changedLines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5733 | 5733 |
| |
5734 | 5734 |
| |
5735 | 5735 |
| |
5736 |
| - | |
| 5736 | + | |
| 5737 | + | |
5737 | 5738 |
| |
5738 | 5739 |
| |
5739 | 5740 |
| |
| |||
5798 | 5799 |
| |
5799 | 5800 |
| |
5800 | 5801 |
| |
5801 |
| - | |
| 5802 | + | |
| 5803 | + | |
| 5804 | + | |
| 5805 | + | |
| 5806 | + | |
| 5807 | + | |
| 5808 | + | |
| 5809 | + | |
| 5810 | + | |
| 5811 | + | |
5802 | 5812 |
| |
5803 | 5813 |
| |
5804 | 5814 |
| |
| |||
5838 | 5848 |
| |
5839 | 5849 |
| |
5840 | 5850 |
| |
5841 |
| - | |
| 5851 | + | |
5842 | 5852 |
| |
5843 | 5853 |
| |
5844 | 5854 |
| |
5845 | 5855 |
| |
5846 | 5856 |
| |
5847 | 5857 |
| |
5848 | 5858 |
| |
5849 |
| - | |
| 5859 | + | |
5850 | 5860 |
| |
5851 | 5861 |
| |
5852 | 5862 |
| |
|
0 commit comments
Comments
(0)