postgres.git / summary / log / commit / refs
commit 4f45092f13170ed7e8cb3de16ec8315db3272412
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Date: Fri Nov 20 10:42:28 2026 +0000
Skip 061_recovery_target_prefetch without posix_fadvise
The recently introduced test fails on platforms without posix_fadvise,
which reject maintenace_io_concurrency != 0. Fix by skipping the test
when HAVE_POSIX_FADVISE is not defined.
This only affects releases 15 to 17. Since 18, prefetch does not require
posix_fadvise on any platform.
Per reports from non-Linux buildfarm members (e.g. indri and sifaka).
Author: Tomas Vondra <tomas@vondra.me>
Reported-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwHQkzvPCd9_RdsBM_Y7iNkzDQAMm8CBgzkVAxcSp60Xow@mail.gmail.com
src/test/recovery/t/061_recovery_target_prefetch.pl | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/test/recovery/t/061_recovery_target_prefetch.pl b/src/test/recovery/t/061_recovery_target_prefetch.pl
index 96f94d31b20..03192aadf58 100644
--- a/src/test/recovery/t/061_recovery_target_prefetch.pl
+++ b/src/test/recovery/t/061_recovery_target_prefetch.pl
@@ -11,6 +11,13 @@ use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;
+# Prefetching requires posix_fadvise(). Without it, the server rejects the
+# non-zero maintenance_io_concurrency this test relies on.
+if (!check_pg_config("#define HAVE_POSIX_FADVISE 1"))
+{
+ plan skip_all => 'posix_fadvise() not supported by this platform';
+}
+
my $node_primary = PostgreSQL::Test::Cluster->new('primary');
$node_primary->init(has_archiving => 1, allows_streaming => 1);
$node_primary->start;
[parent: d0d809a6c4a1]