42#if defined(HAVE_COPYFILE) && defined(COPYFILE_CLONE_FORCE)
44 pg_fatal(
"error while cloning relation \"%s.%s\" (\"%s\" to \"%s\"): %m",
46#elif defined(__linux__) && defined(FICLONE)
51 pg_fatal(
"error while cloning relation \"%s.%s\": could not open file \"%s\": %m",
56 pg_fatal(
"error while cloning relation \"%s.%s\": could not create file \"%s\": %m",
65 pg_fatal(
"error while cloning relation \"%s.%s\" (\"%s\" to \"%s\"): %s",
91 pg_fatal(
"error while copying relation \"%s.%s\": could not open file \"%s\": %m",
96 pg_fatal(
"error while copying relation \"%s.%s\": could not create file \"%s\": %m",
100#define COPY_BUF_SIZE (50 * BLCKSZ)
110 pg_fatal(
"error while copying relation \"%s.%s\": could not read file \"%s\": %m",
122 pg_fatal(
"error while copying relation \"%s.%s\": could not write file \"%s\": %m",
136 pg_fatal(
"error while copying relation \"%s.%s\" (\"%s\" to \"%s\"): %m",
154#ifdef HAVE_COPY_FILE_RANGE
160 pg_fatal(
"error while copying relation \"%s.%s\": could not open file \"%s\": %m",
165 pg_fatal(
"error while copying relation \"%s.%s\": could not create file \"%s\": %m",
172 pg_fatal(
"error while copying relation \"%s.%s\": could not copy file range from \"%s\" to \"%s\": %m",
194 pg_fatal(
"error while creating link for relation \"%s.%s\" (\"%s\" to \"%s\"): %m",
233 pg_fatal(
"error while copying relation \"%s.%s\": could not open file \"%s\": %m",
237 pg_fatal(
"error while copying relation \"%s.%s\": could not stat file \"%s\": %m",
242 pg_fatal(
"error while copying relation \"%s.%s\": could not create file \"%s\": %m",
266 pg_fatal(
"error while copying relation \"%s.%s\": could not read file \"%s\": %m",
269 pg_fatal(
"error while copying relation \"%s.%s\": partial page found in file \"%s\"",
344 pg_fatal(
"error while copying relation \"%s.%s\": could not write file \"%s\": %m",
369#if defined(HAVE_COPYFILE) && defined(COPYFILE_CLONE_FORCE)
371 pg_fatal(
"could not clone file between old and new data directories: %m");
372#elif defined(__linux__) && defined(FICLONE)
378 pg_fatal(
"could not open file \"%s\": %m",
383 pg_fatal(
"could not create file \"%s\": %m",
387 pg_fatal(
"could not clone file between old and new data directories: %m");
393 pg_fatal(
"file cloning not supported on this platform");
409#if defined(HAVE_COPY_FILE_RANGE)
415 pg_fatal(
"could not open file \"%s\": %m",
420 pg_fatal(
"could not create file \"%s\": %m",
424 pg_fatal(
"could not copy file range between old and new data directories: %m");
430 pg_fatal(
"copy_file_range not supported on this platform");
449 pg_fatal(
"could not create hard link between old and new data directories: %m\n"
450 "In link mode the old and new data directories must be on the same file system.");
452 pg_fatal(
"could not create hard link between old and new data directories: %m\n"
453 "In swap mode the old and new data directories must be on the same file system.");
455 pg_fatal(
"unrecognized transfer mode");
PageHeaderData * PageHeader
#define SizeOfPageHeaderData
uint16 pg_checksum_page(char *page, BlockNumber blkno)
void * pg_malloc(size_t size)
void linkFile(const char *src, const char *dst, const char *schemaName, const char *relName)
void check_file_clone(void)
void rewriteVisibilityMap(const char *fromfile, const char *tofile, const char *schemaName, const char *relName)
void check_hard_link(transferMode transfer_mode)
void cloneFile(const char *src, const char *dst, const char *schemaName, const char *relName)
void copyFileByRange(const char *src, const char *dst, const char *schemaName, const char *relName)
void copyFile(const char *src, const char *dst, const char *schemaName, const char *relName)
void check_copy_file_range(void)
uint32 data_checksum_version
#define BITS_PER_HEAPBLOCK
#define VISIBILITYMAP_ALL_VISIBLE
void _dosmaperr(unsigned long)