> On Jul 12, 2018, at 19:54, Andres Freund <andres(at)anarazel(dot)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 along the lines of pg_basebackup? This scenario (pg_rewind being run very quickly after secondary promotion) is not uncommon when there's scripting around the switch-over process.
--
-- Christophe Pettus
xof(at)thebuild(dot)com