PostgreSQL Source Code git master
|
Go to the source code of this file.
Functions | |
static void | transfer_single_new_db (FileNameMap *maps, int size, char *old_tablespace) |
static void | transfer_relfile (FileNameMap *map, const char *type_suffix, bool vm_must_add_frozenbit) |
void | transfer_all_new_tablespaces (DbInfoArr *old_db_arr, DbInfoArr *new_db_arr, char *old_pgdata, char *new_pgdata) |
void | transfer_all_new_dbs (DbInfoArr *old_db_arr, DbInfoArr *new_db_arr, char *old_pgdata, char *new_pgdata, char *old_tablespace) |
void transfer_all_new_dbs | ( | DbInfoArr * | old_db_arr, |
DbInfoArr * | new_db_arr, | ||
char * | old_pgdata, | ||
char * | new_pgdata, | ||
char * | old_tablespace | ||
) |
Definition at line 87 of file relfilenumber.c.
References DbInfo::db_name, DbInfoArr::dbs, gen_db_file_maps(), DbInfoArr::ndbs, pg_fatal, pg_free(), and transfer_single_new_db().
Referenced by parallel_transfer_all_new_dbs().
void transfer_all_new_tablespaces | ( | DbInfoArr * | old_db_arr, |
DbInfoArr * | new_db_arr, | ||
char * | old_pgdata, | ||
char * | new_pgdata | ||
) |
Definition at line 27 of file relfilenumber.c.
References check_ok(), end_progress_output(), UserOpts::jobs, OSInfo::num_old_tablespaces, OSInfo::old_tablespaces, os_info, parallel_transfer_all_new_dbs(), prep_status_progress(), reap_child(), UserOpts::transfer_mode, TRANSFER_MODE_CLONE, TRANSFER_MODE_COPY, TRANSFER_MODE_COPY_FILE_RANGE, TRANSFER_MODE_LINK, and user_opts.
Referenced by main().
|
static |
Definition at line 174 of file relfilenumber.c.
References cloneFile(), copyFile(), copyFileByRange(), FileNameMap::db_oid, linkFile(), MAXPGPATH, FileNameMap::new_tablespace, FileNameMap::new_tablespace_suffix, FileNameMap::nspname, FileNameMap::old_tablespace, FileNameMap::old_tablespace_suffix, pg_fatal, pg_log(), PG_STATUS, PG_VERBOSE, FileNameMap::relfilenumber, FileNameMap::relname, rewriteVisibilityMap(), snprintf, stat::st_size, stat, UserOpts::transfer_mode, TRANSFER_MODE_CLONE, TRANSFER_MODE_COPY, TRANSFER_MODE_COPY_FILE_RANGE, TRANSFER_MODE_LINK, and user_opts.
Referenced by transfer_single_new_db().
|
static |
Definition at line 136 of file relfilenumber.c.
References ControlData::cat_ver, ClusterInfo::controldata, maps, new_cluster, old_cluster, size, transfer_relfile(), and VISIBILITY_MAP_FROZEN_BIT_CAT_VER.
Referenced by transfer_all_new_dbs().