]> granicus.if.org Git - postgresql/commit
Fix pg_rewind regression failure after "fast promotion"
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 1 May 2015 04:57:18 +0000 (21:57 -0700)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 1 May 2015 04:59:58 +0000 (21:59 -0700)
commit484a848a73fc5a76c16bc73626b290154b6a57b4
tree11a9ef6c962d9e8d4b204142f58f348900f2e809
parent9d396af46357df1243aff4a9ca4f4987e4fe6024
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
src/bin/pg_rewind/RewindTest.pm