Add prefetching support on macOS

Peter Eisentraut <peter@eisentraut.org>

Commit: 6654bb92047b37cee053cedd6fa1829841b2ad8e
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-08-28T05:28:27Z
Releases: 18.0
Add prefetching support on macOS

macOS doesn't have posix_fadvise(), but fcntl() with the F_RDADVISE
command does the same thing.

Some related documentation has been generalized to not mention
posix_advise() specifically anymore.

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

Files

PathChange+/−
doc/src/sgml/config.sgml modified +5 −9
doc/src/sgml/wal.sgml modified +2 −2
src/backend/commands/variable.c modified +2 −2
src/backend/storage/file/fd.c modified +38 −19
src/include/pg_config_manual.h modified +2 −3
src/include/port/darwin.h modified +5 −0

Documentation touched

Discussion