Search Postgresql Archives

Re: Replication and fsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux