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