forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit236d569
committed
Fix btree mark/restore bug.
Commit2ed5b87 introduced a bug inmark/restore, in an attempt to optimize repeated restores to thesame page. This caused an assertion failure during a merge joinwhich fed directly from an index scan, although the impact wouldnot be limited to that case. Revert the bad chunk of code fromthat commit.While investigating this bug it was discovered that a particular"paranoia" set of the mark position field would not prevent badbehavior; it would just make it harder to diagnose. Change thatinto an assertion, which will draw attention to any future problemin that area more directly.Backpatch to 9.5, where the bug was introduced.Bug #14169 reported by Shinta Koyanagi.Preliminary analysis by Tom Lane identified which commit causedthe bug.1 parent43d3fbe commit236d569
2 files changed
+1
-20
lines changedLines changed: 0 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
592 | 592 |
| |
593 | 593 |
| |
594 | 594 |
| |
595 |
| - | |
596 |
| - | |
597 |
| - | |
598 |
| - | |
599 |
| - | |
600 |
| - | |
601 |
| - | |
602 |
| - | |
603 |
| - | |
604 |
| - | |
605 |
| - | |
606 |
| - | |
607 |
| - | |
608 |
| - | |
609 |
| - | |
610 |
| - | |
611 |
| - | |
612 |
| - | |
613 |
| - | |
614 | 595 |
| |
615 | 596 |
| |
616 | 597 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1000 | 1000 |
| |
1001 | 1001 |
| |
1002 | 1002 |
| |
1003 |
| - | |
| 1003 | + | |
1004 | 1004 |
| |
1005 | 1005 |
| |
1006 | 1006 |
| |
|
0 commit comments
Comments
(0)