forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf4ecfbc
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 parent30de42d commitf4ecfbc
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4737 | 4737 |
| |
4738 | 4738 |
| |
4739 | 4739 |
| |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
4740 | 4743 |
| |
| 4744 | + | |
4741 | 4745 |
| |
4742 | 4746 |
| |
4743 | 4747 |
| |
|
0 commit comments
Comments
(0)