PostgreSQL Source Code  git master
copy_file.h
Go to the documentation of this file.
1 /*
2  * Copy entire files.
3  *
4  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
5  * Portions Copyright (c) 1994, Regents of the University of California
6  *
7  * src/bin/pg_combinebackup/copy_file.h
8  *
9  *-------------------------------------------------------------------------
10  */
11 #ifndef COPY_FILE_H
12 #define COPY_FILE_H
13 
14 #include "c.h"
15 #include "common/checksum_helper.h"
16 #include "common/file_utils.h"
17 
18 /*
19  * Enumeration to denote copy modes.
20  */
21 typedef enum CopyMethod
22 {
26 #ifdef WIN32
27  COPY_METHOD_COPYFILE,
28 #endif
30 
31 extern void copy_file(const char *src, const char *dst,
32  pg_checksum_context *checksum_ctx,
33  CopyMethod copy_method, bool dry_run);
34 
35 #endif /* COPY_FILE_H */
void copy_file(const char *src, const char *dst, pg_checksum_context *checksum_ctx, CopyMethod copy_method, bool dry_run)
Definition: copy_file.c:45
CopyMethod
Definition: copy_file.h:22
@ COPY_METHOD_CLONE
Definition: copy_file.h:23
@ COPY_METHOD_COPY
Definition: copy_file.h:24
@ COPY_METHOD_COPY_FILE_RANGE
Definition: copy_file.h:25
static bool dry_run