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-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
15
16/*
17 * Enumeration to denote copy modes.
18 */
19typedef enum CopyMethod
20{
24#ifdef WIN32
25 COPY_METHOD_COPYFILE,
26#endif
29
30extern 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 */
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
Definition: copy_file.h:20
@ COPY_METHOD_CLONE
Definition: copy_file.h:21
@ COPY_METHOD_LINK
Definition: copy_file.h:27
@ COPY_METHOD_COPY
Definition: copy_file.h:22
@ COPY_METHOD_COPY_FILE_RANGE
Definition: copy_file.h:23
static bool dry_run