forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaac80bf
committed
Fix amcheck child check pg_upgrade bug.
Commitd114cc5 overlooked the fact that pg_upgrade'd B-Tree indexeshave leaf page high keys whose offset numbers do not match the one fromthe copy of the tuple one level up (the copy stored with a downlink forleaf page's right sibling page). This led to false positive reports ofcorruption from bt_index_parent_check() when it was called to verify apg_upgrade'd index.To fix, skip comparing the offset number on pg_upgrade'd B-Tree indexes.Author: Anastasia Lubennikova <a.lubennikova@postgrespro.ru>Author: Peter Geoghegan <pg@bowt.ie>Reported-By: Andrew Bille <andrewbille@gmail.com>Diagnosed-By: Anastasia Lubennikova <a.lubennikova@postgrespro.ru>Bug: #16619Discussion:https://postgr.es/m/16619-aaba10f83fdc1c3c@postgresql.orgBackpatch: 13-, where child check was enhanced.1 parente5fac1c commitaac80bf
1 file changed
+28
-6
lines changedLines changed: 28 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1752 | 1752 |
| |
1753 | 1753 |
| |
1754 | 1754 |
| |
1755 |
| - | |
| 1755 | + | |
1756 | 1756 |
| |
1757 | 1757 |
| |
1758 | 1758 |
| |
1759 | 1759 |
| |
1760 |
| - | |
1761 |
| - | |
1762 |
| - | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
1763 | 1785 |
| |
1764 | 1786 |
| |
1765 | 1787 |
| |
| |||
1913 | 1935 |
| |
1914 | 1936 |
| |
1915 | 1937 |
| |
1916 |
| - | |
| 1938 | + | |
1917 | 1939 |
| |
1918 | 1940 |
| |
1919 | 1941 |
| |
| |||
2007 | 2029 |
| |
2008 | 2030 |
| |
2009 | 2031 |
| |
2010 |
| - | |
| 2032 | + | |
2011 | 2033 |
| |
2012 | 2034 |
| |
2013 | 2035 |
| |
|
0 commit comments
Comments
(0)