> Done the switch for this case. For pg_rewind actually I think that this
> is an area where its logic could be improved a bit. So first the data
> folder is synced, and then the control file is updated.
Attached is a quick patch about "pg_rewind", so that the control file is
updated after everything else is committed to disk.
--
Fabien.