Definition at line 16 of file dump.c.
17{
18 int dbnum;
19
21
22
24 "\"%s/pg_dumpall\" %s --globals-only --quote-all-identifiers "
25 "--binary-upgrade %s --no-sync -f \"%s/%s\"",
31
33
34
36 {
41 escaped_connstr;
42
49
53
55 "\"%s/pg_dump\" %s --schema-only --quote-all-identifiers "
56 "--binary-upgrade --format=custom %s --no-sync --file=\"%s/%s\" %s",
60 sql_file_name, escaped_connstr.
data);
61
63 }
64
65
67 ;
68
71}
bool exec_prog(const char *log_filename, const char *opt_log_file, bool report_error, bool exit_on_error, const char *fmt,...)
bool reap_child(bool wait_for_child)
void parallel_exec_prog(const char *log_file, const char *opt_log_file, const char *fmt,...)
static void check_ok(void)
PGresult char * cluster_conn_opts(ClusterInfo *cluster)
#define GLOBALS_DUMP_FILE
#define DB_DUMP_LOG_FILE_MASK
void void pg_log(eLogType type, const char *fmt,...) pg_attribute_printf(2
void void prep_status_progress(const char *fmt,...) pg_attribute_printf(1
void prep_status(const char *fmt,...) pg_attribute_printf(1
void end_progress_output(void)
#define DB_DUMP_FILE_MASK
void initPQExpBuffer(PQExpBuffer str)
void appendPQExpBufferStr(PQExpBuffer str, const char *data)
void termPQExpBuffer(PQExpBuffer str)
void appendShellString(PQExpBuffer buf, const char *str)
void appendConnStrVal(PQExpBuffer buf, const char *str)
References appendConnStrVal(), appendPQExpBufferStr(), appendShellString(), ClusterInfo::bindir, check_ok(), cluster_conn_opts(), connstr, PQExpBufferData::data, DB_DUMP_FILE_MASK, DB_DUMP_LOG_FILE_MASK, DbInfo::db_name, DbInfo::db_oid, ClusterInfo::dbarr, DbInfoArr::dbs, LogOpts::dumpdir, end_progress_output(), exec_prog(), GLOBALS_DUMP_FILE, initPQExpBuffer(), log_opts, MAXPGPATH, DbInfoArr::ndbs, new_cluster, old_cluster, parallel_exec_prog(), pg_log(), PG_STATUS, prep_status(), prep_status_progress(), reap_child(), snprintf, termPQExpBuffer(), UTILITY_LOG_FILE, and LogOpts::verbose.
Referenced by check_and_dump_old_cluster().