PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <unistd.h>
#include "access/xlog.h"
#include "common/file_utils.h"
#include "libpq/libpq-be.h"
#include "libpq/pqsignal.h"
#include "miscadmin.h"
#include "nodes/queryjumble.h"
#include "port.h"
#include "postmaster/autovacuum.h"
#include "postmaster/auxprocess.h"
#include "postmaster/bgworker_internals.h"
#include "postmaster/bgwriter.h"
#include "postmaster/fork_process.h"
#include "postmaster/pgarch.h"
#include "postmaster/postmaster.h"
#include "postmaster/startup.h"
#include "postmaster/syslogger.h"
#include "postmaster/walsummarizer.h"
#include "postmaster/walwriter.h"
#include "replication/slotsync.h"
#include "replication/walreceiver.h"
#include "storage/dsm.h"
#include "storage/fd.h"
#include "storage/ipc.h"
#include "storage/pg_shmem.h"
#include "storage/pmsignal.h"
#include "storage/proc.h"
#include "storage/procsignal.h"
#include "tcop/backend_startup.h"
#include "tcop/tcopprot.h"
#include "utils/builtins.h"
#include "utils/datetime.h"
#include "utils/guc.h"
#include "utils/injection_point.h"
#include "utils/memutils.h"
#include "utils/timestamp.h"
Go to the source code of this file.
Data Structures | |
struct | child_process_kind |
Functions | |
const char * | PostmasterChildName (BackendType child_type) |
pid_t | postmaster_child_launch (BackendType child_type, char *startup_data, size_t startup_data_len, ClientSocket *client_sock) |
Variables | |
static child_process_kind | child_process_kinds [] |
pid_t postmaster_child_launch | ( | BackendType | child_type, |
char * | startup_data, | ||
size_t | startup_data_len, | ||
ClientSocket * | client_sock | ||
) |
Definition at line 228 of file launch_backend.c.
References Assert, B_LOGGER, child_process_kinds, ClosePostmasterPorts(), dsm_detach_all(), fork_process(), InitPostmasterChild(), IsPostmasterEnvironment, IsUnderPostmaster, child_process_kind::main_fn, MemoryContextSwitchTo(), MyClientSocket, name, palloc(), pg_unreachable, PGSharedMemoryDetach(), and TopMemoryContext.
Referenced by BackendStartup(), do_start_bgworker(), StartChildProcess(), and SysLogger_Start().
const char* PostmasterChildName | ( | BackendType | child_type | ) |
Definition at line 211 of file launch_backend.c.
References child_process_kinds, and child_process_kind::name.
Referenced by StartChildProcess().
|
static |
Definition at line 181 of file launch_backend.c.
Referenced by postmaster_child_launch(), and PostmasterChildName().