Re: Offline enabling/disabling of data checksums
От | Michael Banck |
---|---|
Тема | Re: Offline enabling/disabling of data checksums |
Дата | |
Msg-id | 1552577180.9697.4.camel@credativ.de обсуждение исходный текст |
Ответ на | Re: Offline enabling/disabling of data checksums (Magnus Hagander <magnus@hagander.net>) |
Ответы |
Re: Offline enabling/disabling of data checksums
Re: Offline enabling/disabling of data checksums |
Список | pgsql-hackers |
Hi, Am Donnerstag, den 14.03.2019, 15:26 +0100 schrieb Magnus Hagander: > Given that the failure is data corruption, I don't think big fat > warning is enough. We should really make it impossible to start up the > postmaster by mistake during the checksum generation. People don't > read the documentation until it's too late. And it might not even be > under their control - some automated tool might go in and try to start > postgres, and boom, corruption. I guess you're right. > One big-hammer method could be similar to what pg_upgrade does -- > temporarily rename away the controlfile so postgresql can't start, and > when done, put it back. That sounds like a good solution to me. I've made PoC patch for that, see attached. The only question is whether pg_checksums should try to move pg_control back (i) on failure (ii) when interrupted? 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 по дате отправления: