|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Typedefs | |
| typedef enum FileCopyMethod | FileCopyMethod |
Enumerations | |
| enum | FileCopyMethod { FILE_COPY_METHOD_COPY , FILE_COPY_METHOD_CLONE } |
Functions | |
| void | copydir (const char *fromdir, const char *todir, bool recurse) |
| void | copy_file (const char *fromfile, const char *tofile) |
Variables | |
| PGDLLIMPORT int | file_copy_method |
| Enumerator | |
|---|---|
| FILE_COPY_METHOD_COPY | |
| FILE_COPY_METHOD_CLONE | |
Definition at line 16 of file copydir.h.
Definition at line 133 of file copydir.c.
References CHECK_FOR_INTERRUPTS, CloseTransientFile(), COPY_BUF_SIZE, dstfd, ereport, errcode_for_file_access(), errmsg(), ERROR, fb(), FLUSH_DISTANCE, OpenTransientFile(), palloc(), pfree(), PG_BINARY, pg_flush_data(), pgstat_report_wait_end(), pgstat_report_wait_start(), read, and write.
Referenced by basic_archive_file(), copydir(), process_directory_recursively(), reconstruct_from_incremental_file(), and ResetUnloggedRelationsInDbspaceDir().
Definition at line 48 of file copydir.c.
References AllocateDir(), CHECK_FOR_INTERRUPTS, clone_file(), copy_file(), copydir(), enableFsync, ereport, errcode_for_file_access(), errmsg(), ERROR, fb(), file_copy_method, FILE_COPY_METHOD_CLONE, FreeDir(), fsync_fname(), get_dirent_type(), MakePGDirectory(), MAXPGPATH, PGFILETYPE_DIR, PGFILETYPE_REG, ReadDir(), and snprintf.
Referenced by copydir(), CreateDatabaseUsingFileCopy(), dbase_redo(), and movedb().
|
extern |