pgsql: amcheck: Report an error when the next page to a leaf is not a l - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: amcheck: Report an error when the next page to a leaf is not a l
Date
Msg-id E1s9vFT-001O9Q-QI@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/97e5b0026fc276ab1bcde58ae98ae1fcd9c3acc3

Modified Files
--------------
contrib/amcheck/verify_nbtree.c | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: doc PG 17 relnotes: fix pg_stat_reset_shared quoting
Next
From: Alexander Korotkov
Date:
Subject: pgsql: Don't copy extended statistics during MERGE/SPLIT partition oper