diff --git a/src/test/recovery/t/046_checkpoint_logical_slot.pl b/src/test/recovery/t/046_checkpoint_logical_slot.pl
index 65f0205bb77..061306b7e17 100644
--- a/src/test/recovery/t/046_checkpoint_logical_slot.pl
+++ b/src/test/recovery/t/046_checkpoint_logical_slot.pl
@@ -90,23 +90,23 @@ note('injection_point is reached');
 
 # Try to advance the logical slot, but make it stop when it moves to the next
 # WAL segment (this has to happen in the background, too).
-my $logical = $node->background_psql('postgres');
-$logical->query_safe(
-	q{select injection_points_attach('logical-replication-slot-advance-segment','wait');}
-);
-$logical->query_until(
-	qr/get_changes/,
-	q(
-\echo get_changes
-select count(*) from pg_logical_slot_get_changes('slot_logical', null, null) \watch 1
-\q
-));
+#my $logical = $node->background_psql('postgres');
+#$logical->query_safe(
+#	q{select injection_points_attach('logical-replication-slot-advance-segment','wait');}
+#);
+#$logical->query_until(
+#	qr/get_changes/,
+#	q(
+#\echo get_changes
+#select count(*) from pg_logical_slot_get_changes('slot_logical', null, null) \watch 1
+#\q
+#));
 
 # Wait until the slot's restart_lsn points to the next WAL segment.
-note('waiting for injection_point');
-$node->wait_for_event('client backend',
-	'logical-replication-slot-advance-segment');
-note('injection_point is reached');
+#note('waiting for injection_point');
+#$node->wait_for_event('client backend',
+#	'logical-replication-slot-advance-segment');
+#note('injection_point is reached');
 
 # OK, we're in the right situation: time to advance the physical slot, which
 # recalculates the required LSN, and then unblock the checkpoint, which
