|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <unistd.h>#include "bootstrap/bootstrap.h"#include "common/username.h"#include "miscadmin.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 | |
| StaticAssertDecl (lengthof(DispatchOptionNames)==DISPATCH_POSTMASTER, "array length mismatch") | |
| 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[]) |
| DispatchOption | parse_dispatch_option (const char *name) |
| const char * | __ubsan_default_options (void) |
Variables | |
| const char * | progname |
| static bool | reached_main = false |
| static const char *const | DispatchOptionNames [] |
| const char * __ubsan_default_options | ( | void | ) |
Definition at line 513 of file main.c.
References reached_main.
|
static |
Definition at line 447 of file main.c.
References pgwin32_is_admin(), progname, and write_stderr.
Referenced by main().
|
static |
Definition at line 388 of file main.c.
References _, printf, and progname.
Referenced by main().
|
static |
Definition at line 369 of file main.c.
References elog, FATAL, locale, and pg_perm_setlocale().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 71 of file main.c.
References Assert(), BootstrapModeMain(), check_root(), DISPATCH_BOOT, DISPATCH_CHECK, DISPATCH_DESCRIBE_CONFIG, DISPATCH_FORKCHILD, DISPATCH_POSTMASTER, DISPATCH_SINGLE, get_progname(), get_user_name_or_exit(), GucInfoMain(), help(), init_locale(), MemoryContextInit(), MyProcPid, parse_dispatch_option(), PG_BACKEND_VERSIONSTR, PG_TEXTDOMAIN, pgwin32_install_crashdump_handler(), PostgresSingleUserMain(), PostmasterMain(), progname, reached_main, save_ps_display_args(), set_pglocale_pgservice(), set_stack_base(), startup_hacks(), generate_unaccent_rules::stdout, and unsetenv.
| DispatchOption parse_dispatch_option | ( | const char * | name | ) |
Definition at line 244 of file main.c.
References DISPATCH_FORKCHILD, DISPATCH_POSTMASTER, DispatchOptionNames, i, lengthof, and name.
Referenced by BootstrapModeMain(), main(), PostmasterMain(), and process_postgres_switches().
|
static |
Definition at line 284 of file main.c.
References err(), progname, generate_unaccent_rules::stdout, and write_stderr.
Referenced by main().
| StaticAssertDecl | ( | lengthof(DispatchOptionNames) | = =DISPATCH_POSTMASTER, |
| "array length mismatch" | |||
| ) |
|
static |
Definition at line 48 of file main.c.
Referenced by parse_dispatch_option().
| 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(), ConnectDatabaseAhx(), 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(), vacuum_one_database(), and vacuuming_main().
|
static |
Definition at line 45 of file main.c.
Referenced by __ubsan_default_options(), and main().