--- a/t/001_history_replication.pl
+++ b/t/001_history_replication.pl
@@ -14,7 +14,7 @@ use Test::More;
 # (RegisterCustomRmgr) was introduced in PG 15.
 my ($pg_major) = (`pg_config --version` =~ /(\d+)/);
 plan skip_all => "this test requires PostgreSQL 15 or later"
-	if $pg_major < 15;
+	if $pg_major < 17; # Debian: disable tests on 15 and 16 since they don't understand PG_TEST_INITDB_EXTRA_OPTS in Cluster.pm yet (breaks build-time tests only, autopkgtest would be ok, but let's not overcomplicate the patch)
 
 # Set up primary
 my $primary = PostgreSQL::Test::Cluster->new('primary');
