Don't allow walsender to send WAL data until it's been safely fsync'd on the

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 07e8b6aabcca3ad9a67681694d955f607e29ce7b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-06-17T16:41:25Z
Releases: 9.0.0
Don't allow walsender to send WAL data until it's been safely fsync'd on the
master.  Otherwise a subsequent crash could cause the master to lose WAL that
has already been applied on the slave, resulting in the slave being out of
sync and soon corrupt.  Per recent discussion and an example from Robert Haas.

Fujii Masao

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +5 −4
src/backend/replication/walsender.c modified +13 −11
src/include/access/xlog.h modified +2 −2