PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | MAXCMDLEN (2 * MAXPGPATH) |
Functions | |
static void | check_data_dir (ClusterInfo *cluster) |
static void | check_bin_dir (ClusterInfo *cluster, bool check_versions) |
static void | get_bin_version (ClusterInfo *cluster) |
static void | check_exec (const char *dir, const char *program, bool check_version) |
bool | exec_prog (const char *log_filename, const char *opt_log_file, bool report_error, bool exit_on_error, const char *fmt,...) |
bool | pid_lock_file_exists (const char *datadir) |
void | verify_directories (void) |
static void | check_single_dir (const char *pg_data, const char *subdir) |
#define MAXCMDLEN (2 * MAXPGPATH) |
|
static |
Definition at line 383 of file exec.c.
References check_exec(), cluster(), get_bin_version(), GET_MAJOR_VERSION, new_cluster, PG_FATAL, report_status(), S_ISDIR, stat::st_mode, and stat.
Referenced by verify_directories().
|
static |
Definition at line 341 of file exec.c.
References check_single_dir(), cluster(), get_major_server_version(), GET_MAJOR_VERSION, pg_data, and PG_TBLSPC_DIR.
Referenced by verify_directories().
|
static |
Definition at line 429 of file exec.c.
References MAXPGPATH, pg_fatal, pg_free(), pg_strip_crlf(), pipe_read_line(), snprintf, and validate_exec().
Referenced by check_bin_dir().
|
static |
Definition at line 312 of file exec.c.
References MAXPGPATH, pg_data, PG_FATAL, report_status(), S_ISDIR, snprintf, stat::st_mode, and stat.
Referenced by check_data_dir().
bool exec_prog | ( | const char * | log_filename, |
const char * | opt_log_file, | ||
bool | report_error, | ||
bool | exit_on_error, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 85 of file exec.c.
References fflush(), fmt, fprintf, log_file, log_opts, LogOpts::logdir, MAXCMDLEN, MAXPGPATH, pg_fatal, PG_FATAL, pg_log(), PG_REPORT, pg_usleep(), PG_VERBOSE, report_status(), snprintf, generate_unaccent_rules::stdout, va_end(), va_start(), and vsnprintf.
Referenced by copy_subdir_files(), copy_xact_xlog_xid(), create_new_objects(), generate_old_dump(), main(), parallel_exec_prog(), prepare_new_cluster(), prepare_new_globals(), start_postmaster(), and stop_postmaster().
|
static |
Definition at line 33 of file exec.c.
References cluster(), fflush(), MAX_STRING, MAXPGPATH, output, pg_fatal, snprintf, and wait_result_to_str().
Referenced by check_bin_dir().
bool pid_lock_file_exists | ( | const char * | datadir | ) |
void verify_directories | ( | void | ) |
Definition at line 263 of file exec.c.
References check_bin_dir(), check_data_dir(), new_cluster, old_cluster, and pg_fatal.
Referenced by setup().