diff options
Diffstat (limited to 'src/bin/pg_rewind/t/007_standby_source.pl')
-rw-r--r-- | src/bin/pg_rewind/t/007_standby_source.pl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bin/pg_rewind/t/007_standby_source.pl b/src/bin/pg_rewind/t/007_standby_source.pl index 62254344f68..df2e72912b4 100644 --- a/src/bin/pg_rewind/t/007_standby_source.pl +++ b/src/bin/pg_rewind/t/007_standby_source.pl @@ -74,7 +74,7 @@ $node_a->safe_psql('postgres', "INSERT INTO tbl1 values ('in A, before promotion')"); $node_a->safe_psql('postgres', 'CHECKPOINT'); -my $lsn = $node_a->lsn('insert'); +my $lsn = $node_a->lsn('write'); $node_a->wait_for_catchup('node_b', 'write', $lsn); $node_b->wait_for_catchup('node_c', 'write', $lsn); @@ -93,8 +93,7 @@ $node_a->safe_psql('postgres', "INSERT INTO tbl1 VALUES ('in A, after C was promoted')"); # make sure it's replicated to B before we continue -$lsn = $node_a->lsn('insert'); -$node_a->wait_for_catchup('node_b', 'replay', $lsn); +$node_a->wait_for_catchup('node_b'); # Also insert a new row in the standby, which won't be present in the # old primary. @@ -161,8 +160,7 @@ in A, after C was promoted $node_a->safe_psql('postgres', "INSERT INTO tbl1 values ('in A, after rewind')"); -$lsn = $node_a->lsn('insert'); -$node_b->wait_for_catchup('node_c', 'replay', $lsn); +$node_b->wait_for_catchup('node_c', 'replay', $node_a->lsn('write')); check_query( 'SELECT * FROM tbl1', |