|
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"#include "postmaster/proctypelist.h"
Go to the source code of this file.
Data Structures | |
| struct | child_process_kind |
Macros | |
| #define | PG_PROCTYPE(bktype, description, main_func, shmem_attach) [bktype] = {description, main_func, shmem_attach}, |
Functions | |
| const char * | PostmasterChildName (BackendType child_type) |
| pid_t | postmaster_child_launch (BackendType child_type, int child_slot, void *startup_data, size_t startup_data_len, ClientSocket *client_sock) |
Variables | |
| static child_process_kind | child_process_kinds [] |
| #define PG_PROCTYPE | ( | bktype, | |
| description, | |||
| main_func, | |||
| shmem_attach | |||
| ) | [bktype] = {description, main_func, shmem_attach}, |
| pid_t postmaster_child_launch | ( | BackendType | child_type, |
| int | child_slot, | ||
| void * | startup_data, | ||
| size_t | startup_data_len, | ||
| ClientSocket * | client_sock | ||
| ) |
Definition at line 207 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 189 of file launch_backend.c.
References child_process_kinds, and child_process_kind::name.
Referenced by AssignPostmasterChildSlot(), and StartChildProcess().
|
static |
Definition at line 181 of file launch_backend.c.
Referenced by postmaster_child_launch(), and PostmasterChildName().