mirror of
https://github.com/postgres/postgres.git
synced 2026-04-23 07:07:22 -04:00
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 commit6b34e55638, 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
14 lines
304 B
Perl
14 lines
304 B
Perl
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');
|