You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Add support for syncfs() in frontend support functions.
This commit adds support for using syncfs() in fsync_pgdata() andfsync_dir_recurse() (which have been renamed to sync_pgdata() andsync_dir_recurse()). Like recovery_init_sync_method,sync_pgdata() calls syncfs() for the data directory, eachtablespace, and pg_wal (if it is a symlink). For now, all of thefrontend utilities that use these support functions are hard-codedto use fsync(), but a follow-up commit will allow specifyingsyncfs().Co-authored-by: Justin PryzbyReviewed-by: Michael PaquierDiscussion:https://postgr.es/m/20210930004340.GM831%40telsasoft.com