forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5f0762f
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 parent05ffc1f commit5f0762f
1 file changed
+16
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2147 | 2147 | | |
2148 | 2148 | | |
2149 | 2149 | | |
2150 | | - | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | 2150 | | |
2157 | 2151 | | |
2158 | 2152 | | |
| |||
2170 | 2164 | | |
2171 | 2165 | | |
2172 | 2166 | | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
2173 | 2175 | | |
2174 | | - | |
| 2176 | + | |
| 2177 | + | |
2175 | 2178 | | |
2176 | 2179 | | |
2177 | 2180 | | |
2178 | 2181 | | |
2179 | 2182 | | |
2180 | 2183 | | |
2181 | 2184 | | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
2182 | 2190 | | |
2183 | 2191 | | |
2184 | 2192 | | |
| |||
2834 | 2842 | | |
2835 | 2843 | | |
2836 | 2844 | | |
| 2845 | + | |
2837 | 2846 | | |
2838 | 2847 | | |
2839 | 2848 | | |
| |||
0 commit comments
Comments
(0)