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/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, 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, |
int | child_slot, | ||
char * | startup_data, | ||
size_t | startup_data_len, | ||
ClientSocket * | client_sock | ||
) |
Definition at line 227 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, MyPMChildSlot, name, palloc(), pg_unreachable, PGSharedMemoryDetach(), and TopMemoryContext.
Referenced by BackendStartup(), StartBackgroundWorker(), StartChildProcess(), and SysLogger_Start().
const char * PostmasterChildName | ( | BackendType | child_type | ) |
Definition at line 209 of file launch_backend.c.
References child_process_kinds, and child_process_kind::name.
Referenced by AssignPostmasterChildSlot(), and StartChildProcess().
|
static |
Definition at line 178 of file launch_backend.c.
Referenced by postmaster_child_launch(), and PostmasterChildName().