postgresql/src/backend/postmaster
Heikki Linnakangas aafc05de1b Refactor postmaster child process launching
Introduce new postmaster_child_launch() function that deals with the
differences in EXEC_BACKEND mode.

Refactor the mechanism of passing information from the parent to child
process. Instead of using different command-line arguments when
launching the child process in EXEC_BACKEND mode, pass a
variable-length blob of startup data along with all the global
variables. The contents of that blob depend on the kind of child
process being launched. In !EXEC_BACKEND mode, we use the same blob,
but it's simply inherited from the parent to child process.

Reviewed-by: Tristan Partin, Andres Freund
Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3-8b01ff7ce9ef@iki.fi
2024-03-18 11:35:30 +02:00
..
Makefile Move some functions from postmaster.c to a new source file 2024-03-18 11:35:05 +02:00
autovacuum.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
auxprocess.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
bgworker.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
bgwriter.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
checkpointer.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
fork_process.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
interrupt.c Centralize logic for restoring errno in signal handlers. 2024-02-14 16:34:18 -06:00
launch_backend.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
meson.build Move some functions from postmaster.c to a new source file 2024-03-18 11:35:05 +02:00
pgarch.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
postmaster.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
startup.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
syslogger.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
walsummarizer.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
walwriter.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00