PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include "common/string.h"
#include "fe_utils/option_utils.h"
#include "getopt_long.h"
#include "pg_upgrade.h"
#include "utils/pidfile.h"
Go to the source code of this file.
Macros | |
#define | FIX_DEFAULT_READ_ONLY "-c default_transaction_read_only=false" |
Functions | |
static void | usage (void) |
static void | check_required_directory (char **dirpath, const char *envVarName, bool useCwd, const char *cmdLineOption, const char *description, bool missingOk) |
void | parseCommandLine (int argc, char *argv[]) |
void | adjust_data_dir (ClusterInfo *cluster) |
void | get_sock_dir (ClusterInfo *cluster) |
Variables | |
UserOpts | user_opts |
#define FIX_DEFAULT_READ_ONLY "-c default_transaction_read_only=false" |
void adjust_data_dir | ( | ClusterInfo * | cluster | ) |
Definition at line 404 of file option.c.
References check_ok(), cluster(), fflush(), filename, MAX_STRING, MAXPGPATH, old_cluster, output, pg_fatal, pg_strdup(), pg_strip_crlf(), prep_status(), snprintf, and wait_result_to_str().
|
static |
Definition at line 359 of file option.c.
References canonicalize_path(), description, MAXPGPATH, pg_fatal, and pg_strdup().
Referenced by parseCommandLine().
void get_sock_dir | ( | ClusterInfo * | cluster | ) |
Definition at line 473 of file option.c.
References cluster(), DEF_PGUPORT, filename, UserOpts::live_check, LOCK_FILE_LINE_PORT, LOCK_FILE_LINE_SOCKET_DIR, Max, MAXPGPATH, new_cluster, old_cluster, pg_fatal, pg_log(), pg_strdup(), pg_strip_crlf(), PG_WARNING, ClusterInfo::port, snprintf, UserOpts::socketdir, and user_opts.
Referenced by main().
void parseCommandLine | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 39 of file option.c.
References _, ClusterInfo::bindir, canonicalize_path(), UserOpts::check, check_required_directory(), DEF_PGUPORT, UserOpts::do_sync, exit(), FIX_DEFAULT_READ_ONLY, fprintf, free, get_progname(), get_user_info(), getopt_long(), LogOpts::isatty, UserOpts::jobs, log_opts, MAXPGPATH, new_cluster, no_argument, old_cluster, optarg, optind, os_info, parse_sync_method(), path_is_prefix_of_path(), pfree(), pg_fatal, pg_free(), pg_log(), PG_REPORT, pg_strdup(), ClusterInfo::pgdata, ClusterInfo::pgopts, ClusterInfo::port, OSInfo::progname, psprintf(), required_argument, LogOpts::retain, setenv, UserOpts::socketdir, generate_unaccent_rules::stdout, strlcpy(), UserOpts::sync_method, UserOpts::transfer_mode, TRANSFER_MODE_CLONE, TRANSFER_MODE_COPY, TRANSFER_MODE_COPY_FILE_RANGE, TRANSFER_MODE_LINK, usage(), OSInfo::user, user_opts, OSInfo::user_specified, and LogOpts::verbose.
Referenced by main().
|
static |
Definition at line 282 of file option.c.
References _, new_cluster, old_cluster, os_info, ClusterInfo::port, printf, and OSInfo::user.
Referenced by parseCommandLine().
UserOpts user_opts |
Definition at line 30 of file option.c.
Referenced by check_and_dump_old_cluster(), check_cluster_compatibility(), check_new_cluster(), check_old_cluster_for_valid_slots(), create_new_objects(), get_control_data(), get_old_cluster_logical_slot_infos_query(), get_sock_dir(), main(), output_check_banner(), parallel_exec_prog(), parallel_transfer_all_new_dbs(), parseCommandLine(), reap_child(), report_clusters_compatible(), setup(), transfer_all_new_tablespaces(), transfer_relfile(), and upgrade_task_run().