diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2017-03-22 10:00:30 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2017-03-22 10:20:13 -0400 |
commit | 96a7128b7b4c9ce4fb51df8c8b216dfab6340766 (patch) | |
tree | 900964e96eebe58df9033f698506293056a49530 /src/include/common/file_utils.h | |
parent | 9b013dc238cefa2860b384a3fa016ad1ceb062e4 (diff) | |
download | postgresql-96a7128b7b4c9ce4fb51df8c8b216dfab6340766.tar.gz postgresql-96a7128b7b4c9ce4fb51df8c8b216dfab6340766.zip |
Sync pg_dump and pg_dumpall output
Before exiting any files are fsync'ed. A --no-sync option is also
provided for a faster exit if desired.
Michael Paquier.
Reviewed by Albe Laurenz
Discussion: https://postgr.es/m/CAB7nPqS1uZ=Ov+UruW6jr3vB-S_DLVMPc0dQpV-fTDjmm0ZQMg@mail.gmail.com
Diffstat (limited to 'src/include/common/file_utils.h')
-rw-r--r-- | src/include/common/file_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/common/file_utils.h b/src/include/common/file_utils.h index 07c25c244d0..48cc97a4096 100644 --- a/src/include/common/file_utils.h +++ b/src/include/common/file_utils.h @@ -19,6 +19,7 @@ extern int fsync_fname(const char *fname, bool isdir, const char *progname); extern void fsync_pgdata(const char *pg_data, const char *progname, int serverVersion); +extern void fsync_dir_recurse(const char *dir, const char *progname); extern int durable_rename(const char *oldfile, const char *newfile, const char *progname); extern int fsync_parent_path(const char *fname, const char *progname); |