pgsql: Skip 061_recovery_target_prefetch without posix_fadvise

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Skip 061_recovery_target_prefetch without posix_fadvise
Date: 2026-11-20 11:13:36
Message-ID: E1xUMYh-00000000VXO-2pSE@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)vondra(dot)me>
Reported-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAHGQGwHQkzvPCd9_RdsBM_Y7iNkzDQAMm8CBgzkVAxcSp60Xow@mail.gmail.com

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dbabeaed29afe73a736ddaa6d66e6f4433f7fd15

Modified Files
--------------
src/test/recovery/t/061_recovery_target_prefetch.pl | 7 +++++++
1 file changed, 7 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2026-11-20 11:13:52 pgsql: Skip 061_recovery_target_prefetch without posix_fadvise
Previous Message Heikki Linnakangas 2026-11-20 10:22:35 pgsql: pg_upgrade: Remove unnecessary checks on target cluster's versio