mirror of https://github.com/postgres/postgres
This previously resulted in an error and a nonzero exit status, but after discussion this should rather be a noop with a zero exit status. This is a back-patch of commitpull/30/head6b34e55638, plus two changes from commite50cda7840that teach pg_rewind to allow the initial control file states to be DB_SHUTDOWNED_IN_RECOVERY as well as DB_SHUTDOWNED. That's necessary to get the additional regression test case to pass, and the old behavior seems like rather a foot-gun anyway. Peter Eisentraut and Tom Lane
parent
188675256e
commit
4b021aa610
@ -0,0 +1,14 @@ |
||||
use strict; |
||||
use warnings; |
||||
use TestLib; |
||||
use Test::More tests => 1; |
||||
|
||||
use RewindTest; |
||||
|
||||
# Test that running pg_rewind if the two clusters are on the same |
||||
# timeline runs successfully. |
||||
|
||||
RewindTest::setup_cluster(); |
||||
RewindTest::start_master(); |
||||
RewindTest::create_standby(); |
||||
RewindTest::run_pg_rewind('local'); |
||||
Loading…
Reference in new issue