forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit97e5b00
committed
amcheck: Report an error when the next page to a leaf is not a leaf
This is a very unlikely condition during checking a B-tree unique constraint,meaning that the index structure is violated badly, and we shouldn't continuechecking to avoid endless loops, etc. So it's worth immediately throwing anerror.Reported-by: Peter GeogheganDiscussion:https://postgr.es/m/CAH2-Wzk%2B2116uOXdOViA27SHcr31WKPgmjsxXLBs_aTxAeThzg%40mail.gmail.comAuthor: Pavel Borisov1 parent0b5c161 commit97e5b00
1 file changed
+16
-6
lines changedLines changed: 16 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1831 | 1831 |
| |
1832 | 1832 |
| |
1833 | 1833 |
| |
1834 |
| - | |
1835 | 1834 |
| |
1836 | 1835 |
| |
1837 | 1836 |
| |
| |||
1876 | 1875 |
| |
1877 | 1876 |
| |
1878 | 1877 |
| |
1879 |
| - | |
1880 | 1878 |
| |
1881 |
| - | |
| 1879 | + | |
1882 | 1880 |
| |
| 1881 | + | |
| 1882 | + | |
1883 | 1883 |
| |
1884 | 1884 |
| |
1885 | 1885 |
| |
| |||
1899 | 1899 |
| |
1900 | 1900 |
| |
1901 | 1901 |
| |
1902 |
| - | |
1903 |
| - | |
1904 |
| - | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
1905 | 1915 |
| |
1906 | 1916 |
| |
1907 | 1917 |
| |
|
0 commit comments
Comments
(0)