PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <unistd.h>
#include "bootstrap/bootstrap.h"
#include "common/username.h"
#include "port/atomics.h"
#include "postmaster/postmaster.h"
#include "tcop/tcopprot.h"
#include "utils/help_config.h"
#include "utils/memutils.h"
#include "utils/pg_locale.h"
#include "utils/ps_status.h"
Go to the source code of this file.
Functions | |
static void | startup_hacks (const char *progname) |
static void | init_locale (const char *categoryname, int category, const char *locale) |
static void | help (const char *progname) |
static void | check_root (const char *progname) |
int | main (int argc, char *argv[]) |
const char * | __ubsan_default_options (void) |
Variables | |
const char * | progname |
static bool | reached_main = false |
const char * __ubsan_default_options | ( | void | ) |
|
static |
Definition at line 379 of file main.c.
References exit(), pgwin32_is_admin(), progname, and write_stderr.
Referenced by main().
|
static |
|
static |
Definition at line 301 of file main.c.
References elog, FATAL, locale, and pg_perm_setlocale().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 58 of file main.c.
References BootstrapModeMain(), check_root(), exit(), get_progname(), get_user_name_or_exit(), GucInfoMain(), help(), init_locale(), MemoryContextInit(), PG_BACKEND_VERSIONSTR, PG_TEXTDOMAIN, pgwin32_install_crashdump_handler(), PostgresSingleUserMain(), PostmasterMain(), progname, reached_main, save_ps_display_args(), set_pglocale_pgservice(), startup_hacks(), generate_unaccent_rules::stdout, and unsetenv.
|
static |
Definition at line 216 of file main.c.
References err(), exit(), progname, generate_unaccent_rules::stdout, and write_stderr.
Referenced by main().
const char* progname |
Definition at line 44 of file main.c.
Referenced by _check_database_version(), BootstrapModeMain(), check_root(), checkControlFile(), cluster_all_databases(), cluster_one_database(), ConnectDatabase(), connectDatabase(), connectMaintenanceDatabase(), get_opts(), get_progname(), get_user_name_or_exit(), help(), main(), ParallelSlotsSetup(), PostgresSingleUserMain(), PostmasterMain(), process_postgres_switches(), reindex_all_databases(), reindex_one_database(), SelectConfigFiles(), sigTermHandler(), startup_hacks(), usage(), vacuum_all_databases(), and vacuum_one_database().