On Fri, Nov 20, 2026 at 8:22 AM Tomas Vondra <[email protected]> wrote: > What's a good way to check if a machine supports posix_fadvise? I don't > see any TAP test already doing that. I guess we could try assigning into > effective_io_concurrency, and skip the test if it fails.
In v18 and later, setting effective_io_concurrency would succeed even on the platform not supporting posix_fadvise(), such as Windows? If so, checking recovery_prefetch = on might be a better approach? Because its check hook, check_recovery_prefetch(), seems to always return false when USE_PREFETCH is not enabled. Regards, -- Fujii Masao
