forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit336e493
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 parentf4428cc commit336e493
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4670 | 4670 | | |
4671 | 4671 | | |
4672 | 4672 | | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
4673 | 4676 | | |
| 4677 | + | |
4674 | 4678 | | |
4675 | 4679 | | |
4676 | 4680 | | |
| |||
0 commit comments
Comments
(0)