We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f96c7 commit c71f9a0Copy full SHA for c71f9a0
src/bin/pg_rewind/t/007_standby_source.pl
@@ -89,6 +89,10 @@
89
$node_a->safe_psql('postgres',
90
"INSERT INTO tbl1 VALUES ('in A, after C was promoted')");
91
92
+# make sure it's replicated to B before we continue
93
+$lsn = $node_a->lsn('insert');
94
+$node_a->wait_for_catchup('node_b', 'replay', $lsn);
95
+
96
# Also insert a new row in the standby, which won't be present in the
97
# old primary.
98
$node_c->safe_psql('postgres',
0 commit comments