Type: enum
Default: try
Context: sighup
Restart: false
Values: [off, on, try]
Since: 15

Whether to try to prefetch blocks that are referenced in the WAL that are not yet in the buffer pool, during recovery. Valid values are off, on and try (the default). The setting try enables prefetching only if the operating system provides the posix_fadvise function, which is currently used to implement prefetching. Note that some operating systems provide the function, but it doesn't do anything.

Prefetching blocks that will soon be needed can reduce I/O wait times during recovery with some workloads. See also the guc-wal-decode-buffer-size and maintenance_io_concurrency settings, which limit prefetching activity.