We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f172b11 commit 4f4c72cCopy full SHA for 4f4c72c
src/test/recovery/t/028_pitr_timelines.pl
@@ -140,6 +140,13 @@
140
# back to this timeline.
141
$node_pitr->safe_psql('postgres', "INSERT INTO foo VALUES(3);");
142
143
+# Wait for the archiver to be running. The startup process might have yet to
144
+# exit, in which case the postmaster has not started the archiver. If we
145
+# stop() without an archiver, the archive will be incomplete.
146
+$node_pitr->poll_query_until('postgres',
147
+ "SELECT true FROM pg_stat_activity WHERE backend_type = 'archiver';")
148
+ or die "Timed out while waiting for archiver to start";
149
+
150
# Stop the node. This archives the last segment.
151
$node_pitr->stop();
152
0 commit comments