forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit16175e2
committed
Fix potential SSI hazard in heap_update().
Commit6f38d4d failed to heed a warning about the stability of thevalue pointed to by "otid". The caller is allowed to pass in a pointer tonewtup->t_self, which will be updated during the execution of thefunction. Instead, the SSI check should use the value we copy intooldtup.t_self near the top of the function.Not a live bug, because newtup->t_self doesn't really get updated untila bit later, but it was confusing and broke the rule established by thecomment.Back-patch to 13.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/2689164.1618160085%40sss.pgh.pa.us1 parent8a7bd1e commit16175e2
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3561 | 3561 |
| |
3562 | 3562 |
| |
3563 | 3563 |
| |
3564 |
| - | |
| 3564 | + | |
| 3565 | + | |
3565 | 3566 |
| |
3566 | 3567 |
| |
3567 | 3568 |
| |
|
0 commit comments
Comments
(0)