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 | prep_status (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) |
void | pg_putenv (const char *var, const char *val) |
Variables | |
LogOpts | log_opts |
void check_ok | ( | void | ) |
Definition at line 171 of file util.c.
References PG_REPORT, report_status(), and generate_unaccent_rules::stdout.
void end_progress_output | ( | void | ) |
Definition at line 43 of file util.c.
References prep_status().
Referenced by create_new_objects(), generate_old_dump(), and transfer_all_new_tablespaces().
int get_user_info | ( | char ** | user_name_p | ) |
Definition at line 211 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 158 of file util.c.
References _, generate_unaccent_rules::args, PG_FATAL, pg_log_v(), and printf.
Referenced by get_user_info().
void pg_log | ( | eLogType | type, |
const char * | fmt, | ||
... | |||
) |
Definition at line 147 of file util.c.
References generate_unaccent_rules::args, and pg_log_v().
Referenced by prep_status(), and report_status().
|
static |
Definition at line 87 of file util.c.
References _, fprintf, LogOpts::internal, MESSAGE_WIDTH, PG_FATAL, PG_REPORT, PG_STATUS, PG_VERBOSE, PG_WARNING, printf, QUERY_ALLOC, generate_unaccent_rules::stdout, LogOpts::verbose, and vsnprintf.
Referenced by pg_fatal(), and pg_log().
void pg_putenv | ( | const char * | var, |
const char * | val | ||
) |
Definition at line 253 of file util.c.
References psprintf(), putenv, and unsetenv.
Referenced by get_control_data(), and parseCommandLine().
void prep_status | ( | const char * | fmt, |
... | |||
) |
Definition at line 69 of file util.c.
References generate_unaccent_rules::args, MAX_STRING, MESSAGE_WIDTH, pg_log(), PG_REPORT, and vsnprintf.
Referenced by end_progress_output().
char* quote_identifier | ( | const char * | s | ) |
Definition at line 187 of file util.c.
References palloc(), pg_malloc(), quote_all_identifiers, ScanKeywordCategories, ScanKeywordLookup(), ScanKeywords, and UNRESERVED_KEYWORD.
static void void report_status | ( | eLogType | type, |
const char * | fmt, | ||
... | |||
) |
Definition at line 28 of file util.c.
References generate_unaccent_rules::args, MAX_STRING, pg_log(), and vsnprintf.
Referenced by check_ok().
unsigned int str2uint | ( | const char * | str | ) |
LogOpts log_opts |
Definition at line 17 of file util.c.
Referenced by cleanup(), generate_old_dump(), get_db_and_rel_infos(), parseCommandLine(), prepare_new_cluster(), and print_maps().