Fix pg_rewind regression failure after "fast promotion"

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 484a848a73fc5a76c16bc73626b290154b6a57b4
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2015-05-01T04:59:58Z
Releases: 9.5.0
Fix pg_rewind regression failure after "fast promotion"

pg_rewind looks at the control file to determine the server's timeline. If
the standby performs a "fast promotion", the timeline ID in the control
file is not updated until the next checkpoint. The startup process requests
a checkpoint immediately after promotion, so this is unlikely to be an
issue in the real world, but the regression suite ran pg_rewind so quickly
after promotion that the checkpoint had not yet completed.

Reported by Stephen Frost

Files

PathChange+/−
src/bin/pg_rewind/RewindTest.pm modified +8 −0