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

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: amcheck: Report an error when the next page to a leaf is not a l
Дата
Msg-id E1s9vFT-001O9Q-QI@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: doc PG 17 relnotes: fix pg_stat_reset_shared quoting
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Don't copy extended statistics during MERGE/SPLIT partition oper