forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9a57858
committed
Fix WAL replay of locking an updated tuple
We were resetting the tuple's HEAP_HOT_UPDATED flag as well as t_ctid onWAL replay of a tuple-lock operation, which is incorrect when the tupleis already updated.Back-patch to 9.3. The clearing of both header elements was therepreviously, but since no update could be present on a tuple that wasbeing locked, it was harmless.Bug reported by Peter Geoghegan and Greg Stark inCAM3SWZTMQiCi5PV5OWHb+bYkUcnCk=O67w0cSswPvV7XfUcU5g@mail.gmail.com andCAM-w4HPTOeMT4KP0OJK+mGgzgcTOtLRTvFZyvD0O4aH-7dxo3Q@mail.gmail.comrespectively; diagnosis by Andres Freund.1 parent4162a55 commit9a57858
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7721 | 7721 |
| |
7722 | 7722 |
| |
7723 | 7723 |
| |
7724 |
| - | |
| 7724 | + | |
| 7725 | + | |
| 7726 | + | |
| 7727 | + | |
| 7728 | + | |
| 7729 | + | |
| 7730 | + | |
| 7731 | + | |
| 7732 | + | |
| 7733 | + | |
| 7734 | + | |
7725 | 7735 |
| |
7726 | 7736 |
| |
7727 |
| - | |
7728 |
| - | |
7729 | 7737 |
| |
7730 | 7738 |
| |
7731 | 7739 |
| |
|
0 commit comments
Comments
(0)