Re: Online verification of checksums
От | Michael Banck |
---|---|
Тема | Re: Online verification of checksums |
Дата | |
Msg-id | 1553789313.4884.48.camel@credativ.de обсуждение исходный текст |
Ответ на | Re: Online verification of checksums (Michael Banck <michael.banck@credativ.de>) |
Ответы |
Re: Online verification of checksums
|
Список | pgsql-hackers |
Hi, I have rebased this patch now. I also fixed the two issues Andres reported, namely a zeroed-out pageheader and a random LSN. The first is caught be checking for an all- zero-page in the way PageIsVerified() does. The second is caught by comparing the upper 32 bits of the LSN as well and demanding that they are equal. If the LSN is corrupted, the upper 32 bits should be wildly different to the current checkpoint LSN. Well, at least that is a stab at a fix; there is a window where the upper 32 bits could legitimately be different. In order to make that as small as possible, I update the checkpoint LSN every once in a while. Am Montag, den 18.03.2019, 21:15 +0100 schrieb Michael Banck: > I have also added a paragraph to the documentation about possilby > skipping new or recently updated pages: > > + If the cluster is online, pages that have been (re-)written since the last > + checkpoint will not count as checksum failures if they cannot be read or > + verified correctly. I have removed that for now as it seems to be more confusing than helpful. Michael -- Michael Banck Projektleiter / Senior Berater Tel.: +49 2166 9901-171 Fax: +49 2166 9901-100 Email: michael.banck@credativ.de credativ GmbH, HRB Mönchengladbach 12080 USt-ID-Nummer: DE204566209 Trompeterallee 108, 41189 Mönchengladbach Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer Unser Umgang mit personenbezogenen Daten unterliegt folgenden Bestimmungen: https://www.credativ.de/datenschutz
Вложения
В списке pgsql-hackers по дате отправления: