PostgreSQL Source Code git master
|
#include "postgres_fe.h"
#include <fcntl.h>
#include <limits.h>
#include <sys/stat.h>
#include <unistd.h>
#include "common/file_perm.h"
#include "common/logging.h"
#include "copy_file.h"
Go to the source code of this file.
Functions | |
static void | copy_file_blocks (const char *src, const char *dst, pg_checksum_context *checksum_ctx) |
static void | copy_file_clone (const char *src, const char *dest, pg_checksum_context *checksum_ctx) |
static void | copy_file_by_range (const char *src, const char *dest, pg_checksum_context *checksum_ctx) |
void | copy_file (const char *src, const char *dst, pg_checksum_context *checksum_ctx, CopyMethod copy_method, bool dry_run) |
static void | checksum_file (const char *src, pg_checksum_context *checksum_ctx) |
|
static |
Definition at line 127 of file copy_file.c.
References CHECKSUM_TYPE_NONE, close, PG_BINARY, pg_checksum_update(), pg_fatal, pg_free(), pg_malloc(), read, and pg_checksum_context::type.
Referenced by copy_file_by_range(), and copy_file_clone().
void copy_file | ( | const char * | src, |
const char * | dst, | ||
pg_checksum_context * | checksum_ctx, | ||
CopyMethod | copy_method, | ||
bool | dry_run | ||
) |
Definition at line 49 of file copy_file.c.
References CHECKSUM_TYPE_NONE, close, copy_file_blocks(), copy_file_by_range(), copy_file_clone(), COPY_METHOD_CLONE, COPY_METHOD_COPY, COPY_METHOD_COPY_FILE_RANGE, dry_run, fd(), PG_BINARY, pg_checksum_type_name(), pg_fatal, pg_log_debug, and pg_checksum_context::type.
|
static |
Definition at line 160 of file copy_file.c.
References close, PG_BINARY, pg_checksum_update(), pg_fatal, pg_file_create_mode, pg_free(), pg_malloc(), read, and write.
Referenced by copy_file().
|
static |
Definition at line 259 of file copy_file.c.
References checksum_file(), close, generate_unaccent_rules::dest, PG_BINARY, pg_fatal, and pg_file_create_mode.
Referenced by copy_file().
|
static |
Definition at line 213 of file copy_file.c.
References checksum_file(), close, generate_unaccent_rules::dest, PG_BINARY, pg_fatal, pg_file_create_mode, and strerror.
Referenced by copy_file().