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 "storage/spin.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[]) |
Variables | |
const char * | progname |
|
static |
Definition at line 367 of file main.c.
References pgwin32_is_admin(), and write_stderr.
Referenced by main().
|
static |
|
static |
Definition at line 288 of file main.c.
References elog, FATAL, and pg_perm_setlocale().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 59 of file main.c.
References AuxiliaryProcessMain(), check_root(), check_strxfrm_bug(), get_progname(), get_user_name_or_exit(), GucInfoMain(), help(), init_locale(), MemoryContextInit(), PG_BACKEND_VERSIONSTR, PG_TEXTDOMAIN, pgwin32_install_crashdump_handler(), pgwin32_signal_initialize(), PostgresMain(), PostmasterMain(), progname, save_ps_display_args(), set_pglocale_pgservice(), startup_hacks(), generate_unaccent_rules::stdout, and unsetenv.
|
static |
Definition at line 227 of file main.c.
References dummy_spinlock, SpinLockInit, generate_unaccent_rules::stdout, and write_stderr.
Referenced by main().
const char* progname |
Definition at line 46 of file main.c.
Referenced by _check_database_version(), AuxiliaryProcessMain(), checkControlFile(), connectDatabase(), ConnectDatabase(), get_progname(), main(), ParallelSlotClearHandler(), PostgresMain(), PostmasterMain(), process_postgres_switches(), setup_cancel_handler(), sigTermHandler(), and usage().