Don't repeatedly register cache callbacks in pgoutput plugin.
[pgsql.git] / src / include / common / file_utils.h
blob3aefc38b10f084e73e64a16158ee4f8d6b18c832
1 /*-------------------------------------------------------------------------
3 * File-processing utility routines for frontend code
5 * Assorted utility functions to work on files.
8 * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/include/common/file_utils.h
13 *-------------------------------------------------------------------------
15 #ifndef FILE_UTILS_H
16 #define FILE_UTILS_H
18 extern int fsync_fname(const char *fname, bool isdir);
19 extern void fsync_pgdata(const char *pg_data, int serverVersion);
20 extern void fsync_dir_recurse(const char *dir);
21 extern int durable_rename(const char *oldfile, const char *newfile);
22 extern int fsync_parent_path(const char *fname);
24 #endif /* FILE_UTILS_H */