From 8b3289b3d3cb50257256778c34f30186f7bba80f Mon Sep 17 00:00:00 2001 From: Andreas Karlsson Date: Fri, 29 Aug 2025 17:10:52 +0200 Subject: [PATCH] Disable archiving during TDE_MODE_SMGR setup Archiving being enabled during the setup of the SMGR environment caused one of the test suites for WAL archiving to fail so we disable it while running queries in single-user mode. --- src/test/perl/PostgreSQL/Test/TdeCluster.pm | 1 + src/test/recovery/t/020_archive_status.pl | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/test/perl/PostgreSQL/Test/TdeCluster.pm b/src/test/perl/PostgreSQL/Test/TdeCluster.pm index c2ae6377d8d..24065a8b471 100644 --- a/src/test/perl/PostgreSQL/Test/TdeCluster.pm +++ b/src/test/perl/PostgreSQL/Test/TdeCluster.pm @@ -231,6 +231,7 @@ sub _tde_init_sql_command '-D' => $datadir, '-c' => 'exit_on_error=true', '-c' => 'log_checkpoints=false', + '-c' => 'archive_mode=off', $database, ], '<', diff --git a/src/test/recovery/t/020_archive_status.pl b/src/test/recovery/t/020_archive_status.pl index bdf9176b7ed..9cb178950f8 100644 --- a/src/test/recovery/t/020_archive_status.pl +++ b/src/test/recovery/t/020_archive_status.pl @@ -10,12 +10,6 @@ use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; -if ($ENV{TDE_MODE_SMGR} and not $ENV{TDE_MODE_NOSKIP}) -{ - plan skip_all => - q(Failed test 'pg_stat_archiver failed to archive 000000010000000000000004'); -} - my $primary = PostgreSQL::Test::Cluster->new('primary'); $primary->init( has_archiving => 1,