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 <[email protected]>
Reported-by: Fujii Masao <[email protected]>
Discussion: 
https://postgr.es/m/cahgqgwhqkzvpcd9_rdsbm_y7inkzdqamm8cbgzkvaxcsp60...@mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4f45092f13170ed7e8cb3de16ec8315db3272412

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

Reply via email to