- Notifications
You must be signed in to change notification settings - Fork5
Commit3cfb572
committed
Fix buffer pin leak in heap update redo routine.
In a heap update, if the old and new tuple were on different pages, and thenew page no longer existed (because it was subsequently truncated away byvacuum), heap_xlog_update forgot to release the pin on the old buffer. Thisbug was introduced by the "Fix multiple problems in WAL replay" patch,commit3bbf668 (on master branch).With full_page_writes=off, this triggered an "incorrect local pin count"error later in replay, if the old page was vacuumed.This fixes bug #7969, reported by Yunong Xiao. Backpatch to 9.0, like thecommit that introduced this bug.1 parent7a5a59d commit3cfb572
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6824 | 6824 |
| |
6825 | 6825 |
| |
6826 | 6826 |
| |
| 6827 | + | |
| 6828 | + | |
| 6829 | + | |
6827 | 6830 |
| |
| 6831 | + | |
6828 | 6832 |
| |
6829 | 6833 |
| |
6830 | 6834 |
| |
|
0 commit comments
Comments
(0)