forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit46acbeb
committed
Make HEAP_LOCK/HEAP2_LOCK_UPDATED replay reset HEAP_XMAX_INVALID.
0ac5ad5 started to compress infomask bits in WAL records. Unfortunatelythe replay routines for XLOG_HEAP_LOCK/XLOG_HEAP2_LOCK_UPDATED forgot toreset the HEAP_XMAX_INVALID (and some other) hint bits.Luckily that's not problematic in the majority of cases, because after acrash/on a standby row locks aren't meaningful. Unfortunately that doesnot hold true in the presence of prepared transactions. This means thatafter a crash, or after promotion, row level locks held by a prepared,but not yet committed, prepared transaction might not be enforced.Discussion: 20160715192319.ubfuzim4zv3rqnxv@alap3.anarazel.deBackpatch: 9.3, the oldest branch on which0ac5ad5 is present.1 parent6c243f9 commit46acbeb
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7865 | 7865 |
| |
7866 | 7866 |
| |
7867 | 7867 |
| |
| 7868 | + | |
| 7869 | + | |
7868 | 7870 |
| |
7869 | 7871 |
| |
7870 | 7872 |
| |
| |||
7925 | 7927 |
| |
7926 | 7928 |
| |
7927 | 7929 |
| |
| 7930 | + | |
| 7931 | + | |
7928 | 7932 |
| |
7929 | 7933 |
| |
7930 | 7934 |
| |
|
0 commit comments
Comments
(0)