Fixup for prefetching support on macOS

Peter Eisentraut <peter@eisentraut.org>

Commit: d7fe02fb9e6eee16b61874bc8964b0e2d4c5b2ad
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-08-29T06:22:28Z
Releases: 18.0
Fixup for prefetching support on macOS

The new code path (commit 6654bb92047) should call FileAccess() first,
like the posix_fadvise() path.

Reported-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/0827edec-1317-4917-a186-035eb1e3241d%40eisentraut.org

Files

PathChange+/−
src/backend/storage/file/fd.c modified +4 −0

Discussion