From 87129dad670100482d8a514dd4a502cade544ac7 Mon Sep 17 00:00:00 2001 From: Hayato Kuroda Date: Wed, 3 Jul 2024 05:03:11 +0000 Subject: [PATCH v2 2/3] wait until RUNNING_XACT is replicated --- src/bin/pg_basebackup/t/040_pg_createsubscriber.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl b/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl index 80002c5a17..ed5ccf2bd7 100644 --- a/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl +++ b/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl @@ -293,6 +293,7 @@ $node_p->safe_psql($db1, "SELECT pg_create_logical_replication_slot('$fslotname', 'pgoutput', false, false, true)" ); $node_s->start; +$node_p->wait_for_replay_catchup($node_s); $node_s->safe_psql('postgres', "SELECT pg_sync_replication_slots()"); my $result = $node_s->safe_psql('postgres', "SELECT slot_name FROM pg_replication_slots WHERE slot_name = '$fslotname' AND synced AND NOT temporary" -- 2.43.0