PostgreSQL Source Code git master
|
#include "postgres.h"
#include <unistd.h>
#include "libpq/libpq-be.h"
#include "miscadmin.h"
#include "postmaster/autovacuum.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/io_worker.h"
#include "storage/pg_shmem.h"
#include "tcop/backend_startup.h"
#include "utils/memutils.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, int child_slot, const void *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, |
int | child_slot, | ||
const void * | startup_data, | ||
size_t | startup_data_len, | ||
ClientSocket * | client_sock | ||
) |
Definition at line 229 of file launch_backend.c.
References Assert(), B_LOGGER, child_process_kinds, ClosePostmasterPorts(), conn_timing, dsm_detach_all(), ConnectionTiming::fork_end, fork_process(), ConnectionTiming::fork_start, GetCurrentTimestamp(), InitPostmasterChild(), IsExternalConnectionBackend, IsPostmasterEnvironment, IsUnderPostmaster, child_process_kind::main_fn, MemoryContextSwitchTo(), MyClientSocket, MyPMChildSlot, name, palloc(), pg_unreachable, PGSharedMemoryDetach(), ConnectionTiming::socket_create, and TopMemoryContext.
Referenced by BackendStartup(), StartBackgroundWorker(), 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 AssignPostmasterChildSlot(), and StartChildProcess().
|
static |
Definition at line 179 of file launch_backend.c.
Referenced by postmaster_child_launch(), and PostmasterChildName().