forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb631182
committed
nbtree VACUUM: cope with topparent inconsistencies.
Avoid "right sibling %u of block %u is not next child" errors whenvacuuming a corrupt nbtree index. Just LOG the issue and press on.That way VACUUM will have a decent chance of finishing off all requiredprocessing for the index (and for the table as a whole).This is similar to recent work from commit5abff19, as well as workfrom commit5b861ba (later backpatched as commit43e409c), whichtaught nbtree VACUUM to keep going when its "re-find" check fails. Thehardening added by this commit takes place directly after the "re-find"check, right before the critical section for the first stage of pagedeletion.Author: Peter Geoghegan <pg@bowt.ie>Discussion:https://postgr.es/m/CAH2-Wz=dayg0vjs4+er84TS9ami=csdzjpuiCGbEw=idhwqhzQ@mail.gmail.comBackpatch: 11- (all supported versions).1 parente966b3d commitb631182
1 file changed
+16
-7
lines changedLines changed: 16 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1772 | 1772 |
| |
1773 | 1773 |
| |
1774 | 1774 |
| |
1775 |
| - | |
1776 |
| - | |
1777 |
| - | |
1778 |
| - | |
1779 |
| - | |
1780 |
| - | |
1781 | 1775 |
| |
1782 | 1776 |
| |
1783 | 1777 |
| |
| |||
1795 | 1789 |
| |
1796 | 1790 |
| |
1797 | 1791 |
| |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
1798 | 1800 |
| |
1799 |
| - | |
| 1801 | + | |
| 1802 | + | |
1800 | 1803 |
| |
1801 | 1804 |
| |
1802 | 1805 |
| |
1803 | 1806 |
| |
1804 | 1807 |
| |
1805 | 1808 |
| |
1806 | 1809 |
| |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
1807 | 1815 |
| |
1808 | 1816 |
| |
1809 | 1817 |
| |
| |||
2428 | 2436 |
| |
2429 | 2437 |
| |
2430 | 2438 |
| |
| 2439 | + | |
2431 | 2440 |
| |
2432 | 2441 |
| |
2433 | 2442 |
| |
|
0 commit comments
Comments
(0)