Re: Checksums and full_page_writes

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Checksums and full_page_writes
Дата
Msg-id 20141226210711.GA3750@momjian.us
обсуждение исходный текст
Ответ на Checksums and full_page_writes  (Borodin Vladimir <root@simply.name>)
Ответы Re: Checksums and full_page_writes  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
On Fri, Dec 26, 2014 at 01:11:57PM +0300, Borodin Vladimir wrote:
> Hi all.
>
> I ve read thread [0], src/backend/storage/page/README and everything I found in
> the documentation about checksums [1, 2] but I haven t understood what is my
> risk if I enable checksums during initdb and turn off full_page_writes?
>
> Am I right that I can get torn pages on disk in that case but I will somehow
> know about it during checksum checking when this page will be read from disk to
> shared buffers? And is there any way to recover such torn page (from replica or

Yes.

> backup+archived logs, for example)?

There is no way to _fix_ the torn page, but you can ignore the error
with ignore_checksum_failure:

    http://www.postgresql.org/docs/9.4/static/runtime-config-developer.html

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


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

Предыдущее
От: chiru r
Дата:
Сообщение: Re: help troubleshooting invalid page header error
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Checksums and full_page_writes