Re: Replication and fsync

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Replication and fsync
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B17C52478@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Replication and fsync  ("DDT" <410845160@qq.com>)
Список pgsql-general
DDT wrote:
> According to manual, when you set "synchronous_commit" to on, the transaction commits will wait until
> master and slave flush the commit record of transaction to the physical storage, so I think even if
> turn off the fsync on master is safe for data consistency and data will not be lost if slave physical
> storage is not damaged.

I don't think that this is safe.

What if the master crashes and becomes corrupted as a consequence?

It will start sending corrupted data to the slave, which will
replay it, thus becoming corrupted itself.

Yours,
Laurenz Albe

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

Предыдущее
От: Albe Laurenz
Дата:
Сообщение: Re: "Recheck conditions" on indexes
Следующее
От: Ivan Voras
Дата:
Сообщение: Re: "Recheck conditions" on indexes