synchronous replication + fsync=off?

From: "Schubert, Joerg" <jschubert(at)cebacus(dot)de>
To: <pgsql-general(at)postgresql(dot)org>
Subject: synchronous replication + fsync=off?
Date: 2011-11-17 12:52:07
Message-ID: 694FA4BB1769914095CAD9E7FA4275E8EE4E81@cbmail.cebacus.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Or: will it work with
master: fsync=off
and
slave(s): fsync=on?
In this case master is free for read-queries and slave has time to do all the heavy writing. Data on master will not survive a crash but can be restored from slave.

Thanks,

Joerg

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregg Jaskiewicz 2011-11-17 13:12:53 Re: checkpoints are occurring too frequently
Previous Message Anibal David Acosta 2011-11-17 12:48:10 checkpoints are occurring too frequently