forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd1e9079
committed
Ignore nextOid when replaying an ONLINE checkpoint.
The nextOid value is from the start of the checkpoint and may well be stalecompared to values from more recent XLOG_NEXTOID records. Previously, weadopted it anyway, allowing the OID counter to go backwards during a crash.While this should be harmless, it contributed to the severity of the bugfixed in commit0408e1e, by allowing duplicate TOAST OIDs to be assignedimmediately following a crash. Without this error, that issue would onlyhave arisen when TOAST objects just younger than a multiple of 2^32 OIDswere deleted and then not vacuumed in time to avoid a conflict.Pavan DeolaseeDiscussion:https://postgr.es/m/CABOikdOgWT2hHkYG3Wwo2cyZJq2zfs1FH0FgX-=h4OLosXHf9w@mail.gmail.com1 parent0408e1e commitd1e9079
1 file changed
+14
-5
lines changedLines changed: 14 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9785 | 9785 |
| |
9786 | 9786 |
| |
9787 | 9787 |
| |
9788 |
| - | |
9789 |
| - | |
9790 |
| - | |
9791 |
| - | |
9792 |
| - | |
| 9788 | + | |
| 9789 | + | |
| 9790 | + | |
| 9791 | + | |
| 9792 | + | |
| 9793 | + | |
| 9794 | + | |
| 9795 | + | |
| 9796 | + | |
| 9797 | + | |
| 9798 | + | |
| 9799 | + | |
| 9800 | + | |
| 9801 | + | |
9793 | 9802 |
| |
9794 | 9803 |
| |
9795 | 9804 |
| |
|
0 commit comments
Comments
(0)