PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
static void | pg_log_v (eLogType type, const char *fmt, va_list ap) pg_attribute_printf(2 |
static void void | report_status (eLogType type, const char *fmt,...) |
void | end_progress_output (void) |
void | cleanup_output_dirs (void) |
void | prep_status (const char *fmt,...) |
void | prep_status_progress (const char *fmt,...) |
void | pg_log (eLogType type, const char *fmt,...) |
void | pg_fatal (const char *fmt,...) |
void | check_ok (void) |
char * | quote_identifier (const char *s) |
int | get_user_info (char **user_name_p) |
unsigned int | str2uint (const char *str) |
Variables | |
LogOpts | log_opts |
void check_ok | ( | void | ) |
Definition at line 284 of file util.c.
References PG_REPORT, and report_status().
void cleanup_output_dirs | ( | void | ) |
Definition at line 63 of file util.c.
References Assert, LogOpts::basedir, LogOpts::internal, log_opts, pg_check_dir(), pg_log(), PG_WARNING, LogOpts::retain, rmtree(), and LogOpts::rootdir.
Referenced by main(), and report_clusters_compatible().
void end_progress_output | ( | void | ) |
Definition at line 43 of file util.c.
References LogOpts::isatty, log_opts, MESSAGE_WIDTH, pg_log(), PG_REPORT_NONL, printf, and LogOpts::verbose.
Referenced by create_logical_replication_slots(), create_new_objects(), generate_old_dump(), and transfer_all_new_tablespaces().
int get_user_info | ( | char ** | user_name_p | ) |
Definition at line 323 of file util.c.
References get_user_name(), pg_fatal(), and pg_strdup().
Referenced by parseCommandLine().
void pg_fatal | ( | const char * | fmt, |
... | |||
) |
Definition at line 270 of file util.c.
References _, generate_unaccent_rules::args, exit(), fmt, PG_FATAL, pg_log_v(), printf, va_end(), and va_start().
Referenced by get_user_info().
void pg_log | ( | eLogType | type, |
const char * | fmt, | ||
... | |||
) |
Definition at line 259 of file util.c.
References generate_unaccent_rules::args, fmt, pg_log_v(), type, va_end(), and va_start().
Referenced by cleanup_output_dirs(), end_progress_output(), prep_status(), and prep_status_progress().
|
static |
Definition at line 176 of file util.c.
References _, Assert, exit(), fflush(), fmt, fprintf, LogOpts::internal, LogOpts::isatty, log_opts, MESSAGE_WIDTH, PG_FATAL, PG_REPORT, PG_REPORT_NONL, PG_STATUS, PG_VERBOSE, PG_WARNING, printf, QUERY_ALLOC, generate_unaccent_rules::stdout, type, LogOpts::verbose, and vsnprintf.
Referenced by pg_fatal(), pg_log(), and report_status().
void prep_status | ( | const char * | fmt, |
... | |||
) |
Definition at line 129 of file util.c.
References generate_unaccent_rules::args, fmt, MAX_STRING, MESSAGE_WIDTH, pg_log(), PG_REPORT_NONL, va_end(), va_start(), and vsnprintf.
void prep_status_progress | ( | const char * | fmt, |
... | |||
) |
Definition at line 156 of file util.c.
References generate_unaccent_rules::args, fmt, LogOpts::isatty, log_opts, MAX_STRING, MESSAGE_WIDTH, pg_log(), PG_REPORT, PG_REPORT_NONL, va_end(), va_start(), LogOpts::verbose, and vsnprintf.
char* quote_identifier | ( | const char * | s | ) |
static void void report_status | ( | eLogType | type, |
const char * | fmt, | ||
... | |||
) |
Definition at line 32 of file util.c.
References generate_unaccent_rules::args, fmt, pg_log_v(), type, va_end(), and va_start().
Referenced by check_ok().
unsigned int str2uint | ( | const char * | str | ) |
LogOpts log_opts |
Definition at line 17 of file util.c.
Referenced by check_for_connection_status(), check_for_incompatible_polymorphics(), check_for_isn_and_int8_passing_mismatch(), check_for_pg_role_prefix(), check_for_tables_with_oids(), check_for_user_defined_encoding_conversions(), check_for_user_defined_postfix_ops(), check_loadable_libraries(), check_old_cluster_for_valid_slots(), check_old_cluster_subscription_state(), cleanup_output_dirs(), create_new_objects(), end_progress_output(), exec_prog(), generate_old_dump(), get_db_rel_and_slot_infos(), make_outputdirs(), parseCommandLine(), pg_log_v(), prep_status_progress(), prepare_new_cluster(), prepare_new_globals(), process_data_type_check(), and start_postmaster().