> On Jul 12, 2018, at 19:54, Andres Freund <andres@anarazel.de> wrote:
> Do you see a "checkpoint complete: wrote ..." message
> before the rewind started?
Checking, but I suspect that's exactly the problem.
This raises a question: Would it make sense for pg_rewind to either force a checkpoint or have a --checkpoint option
alongthe lines of pg_basebackup? This scenario (pg_rewind being run very quickly after secondary promotion) is not
uncommonwhen there's scripting around the switch-over process.
--
-- Christophe Pettus
xof@thebuild.com