|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include <fcntl.h>#include "common/string.h"#include "fe_utils/version.h"#include "pg_upgrade.h"
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 384 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 342 of file exec.c.
References check_single_dir(), cluster(), GET_MAJOR_VERSION, get_pg_version(), pg_data, and PG_TBLSPC_DIR.
Referenced by verify_directories().
|
static |
Definition at line 430 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 313 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 86 of file exec.c.
References 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, 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(), set_new_cluster_char_signedness(), start_postmaster(), and stop_postmaster().
|
static |
Definition at line 34 of file exec.c.
References cluster(), 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 | ) |
Definition at line 234 of file exec.c.
References close, datadir, fd(), MAXPGPATH, pg_fatal, and snprintf.
Referenced by setup().
| void verify_directories | ( | void | ) |
Definition at line 264 of file exec.c.
References check_bin_dir(), check_data_dir(), new_cluster, old_cluster, and pg_fatal.
Referenced by setup().