amcheck: Report an error when the next page to a leaf is not a leaf
Alexander Korotkov <akorotkov@postgresql.org>
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 continue checking to avoid endless loops, etc. So it's worth immediately throwing an error. Reported-by: Peter Geoghegan Discussion: https://postgr.es/m/CAH2-Wzk%2B2116uOXdOViA27SHcr31WKPgmjsxXLBs_aTxAeThzg%40mail.gmail.com Author: Pavel Borisov
Files
| Path | Change | +/− |
|---|---|---|
| contrib/amcheck/verify_nbtree.c | modified | +16 −6 |
Discussion
- [PATCH] Improve amcheck to also check UNIQUE constraint in btree index. 86 messages · 2021-02-08 → 2024-07-26