Re: synchronous replication + fsync=off?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: synchronous replication + fsync=off?
Дата
Msg-id CAOR=d=2TJvURPTiyyw72ic2A7e6DFJ3H42Svc0V4s8AUnKC5yw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: synchronous replication + fsync=off?  (Jaime Casanova <jaime@2ndquadrant.com>)
Список pgsql-general
On Thu, Nov 17, 2011 at 9:07 AM, Jaime Casanova <jaime@2ndquadrant.com> wrote:
> On Thu, Nov 17, 2011 at 7:52 AM, Schubert, Joerg <jschubert@cebacus.de> wrote:
>> Hello,
>>
>> I have two servers with battery backed power supply (USV). So it is
>> unlikely, that both will crash at the same time.
>>
>> Will synchronous replication work with fsync=off?
>> That means we will commit to system cache, but not to disk. Data will not
>> survive a system crash but the second system should still be consistent.
>>
>
> you should never use fsync=off (in production at least)

That's not entirely true.  for instance, session servers are fine with
fsync=off because the data in them is only alive while the session is
up.  Corrupted database means reinit db, restore schema, put back in
loop.  But yeh for data that means anything, fsync off is a bad idea.

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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: synchronous replication + fsync=off?
Следующее
От: "Tomas Vondra"
Дата:
Сообщение: Re: synchronous replication + fsync=off?