PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
g
h
i
k
l
m
p
r
s
t
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
c
d
f
h
i
n
o
p
r
s
t
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
copy_file.h
Go to the documentation of this file.
1
/*
2
* Copy entire files.
3
*
4
* Portions Copyright (c) 1996-2025, 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 "
common/checksum_helper.h
"
15
16
/*
17
* Enumeration to denote copy modes.
18
*/
19
typedef
enum
CopyMethod
20
{
21
COPY_METHOD_CLONE
,
22
COPY_METHOD_COPY
,
23
COPY_METHOD_COPY_FILE_RANGE
,
24
#ifdef WIN32
25
COPY_METHOD_COPYFILE,
26
#endif
27
COPY_METHOD_LINK
,
28
}
CopyMethod
;
29
30
extern
void
copy_file
(
const
char
*src,
const
char
*dst,
31
pg_checksum_context
*checksum_ctx,
32
CopyMethod
copy_method,
bool
dry_run
);
33
34
#endif
/* COPY_FILE_H */
checksum_helper.h
copy_file
void copy_file(const char *src, const char *dst, pg_checksum_context *checksum_ctx, CopyMethod copy_method, bool dry_run)
Definition:
copy_file.c:52
CopyMethod
CopyMethod
Definition:
copy_file.h:20
COPY_METHOD_CLONE
@ COPY_METHOD_CLONE
Definition:
copy_file.h:21
COPY_METHOD_LINK
@ COPY_METHOD_LINK
Definition:
copy_file.h:27
COPY_METHOD_COPY
@ COPY_METHOD_COPY
Definition:
copy_file.h:22
COPY_METHOD_COPY_FILE_RANGE
@ COPY_METHOD_COPY_FILE_RANGE
Definition:
copy_file.h:23
dry_run
static bool dry_run
Definition:
pg_createsubscriber.c:137
pg_checksum_context
Definition:
checksum_helper.h:53
src
bin
pg_combinebackup
copy_file.h
Generated on Sat May 3 2025 00:13:24 for PostgreSQL Source Code by
1.9.4