Improve search for missing parent downlinks in amcheck

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Improve search for missing parent downlinks in amcheck
Дата
Msg-id CAPpHfduoF-c4RhOyOm=4-Y367+8txq9Q6iM_ty0OYc8si1Abww@mail.gmail.com
обсуждение исходный текст
Ответы Re: Improve search for missing parent downlinks in amcheck  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
Hi!

Currently we amcheck supports lossy checking for missing parent
downlinks.  It collects bitmap of downlink hashes and use it to check
subsequent tree level.  We've experienced some large corrupted indexes
which pass this check due to its looseness.

However, it seems to me we can implement this check in non-lossy
manner without making it significantly slower.  We anyway traverse
downlinks from parent to children in order to verify that hikeys are
corresponding to downlink keys.  We can also traverse from one
downlink to subsequent using rightlinks.  So, if there are some
intermediate pages between them, they are candidates to have missing
parent downlinks.  The patch is attached.

With this patch amcheck could successfully detect corruption for our
customer, which unpatched amcheck couldn't find.

Opinions?

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: finding changed blocks using WAL scanning
Следующее
От: Tom Lane
Дата:
Сообщение: ExecForceStoreMinimalTuple leaks memory like there's no tomorrow