A system parameter determining how to synchronize data directory files before recovery starts

recovery_init_sync_method is a configuration parameter determining the method to use for synchronizing all files in the data directory before crash recovery begins.

recovery_init_sync_method was added in PostgreSQL 14.

Default value

The default value for recovery_init_sync_method is: fsync.


Following values can be set:

  • fsync
  • syncfs

Note that syncfs is available on Linux only.

Change history


GUC configuration item