forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1b315c5
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 parent96103c6 commit1b315c5
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5367 | 5367 |
| |
5368 | 5368 |
| |
5369 | 5369 |
| |
| 5370 | + | |
| 5371 | + | |
| 5372 | + | |
5370 | 5373 |
| |
| 5374 | + | |
5371 | 5375 |
| |
5372 | 5376 |
| |
5373 | 5377 |
| |
|
0 commit comments
Comments
(0)