git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f1baed1) | patch
Refactor postmaster child process launching
2024年3月18日 09:35:08 +0000 (11:35 +0200)
2024年3月18日 09:35:30 +0000 (11:35 +0200)
commit aafc05de1bf5c0324cb5e690c6742118c1ac4af6
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
28 files changed:
src/backend/postmaster/autovacuum.c diff | blob | blame | history
src/backend/postmaster/auxprocess.c diff | blob | blame | history
src/backend/postmaster/bgworker.c diff | blob | blame | history
src/backend/postmaster/bgwriter.c diff | blob | blame | history
src/backend/postmaster/checkpointer.c diff | blob | blame | history
src/backend/postmaster/launch_backend.c diff | blob | blame | history
src/backend/postmaster/pgarch.c diff | blob | blame | history
src/backend/postmaster/postmaster.c diff | blob | blame | history
src/backend/postmaster/startup.c diff | blob | blame | history
src/backend/postmaster/syslogger.c diff | blob | blame | history
src/backend/postmaster/walsummarizer.c diff | blob | blame | history
src/backend/postmaster/walwriter.c diff | blob | blame | history
src/backend/replication/logical/slotsync.c diff | blob | blame | history
src/backend/replication/walreceiver.c diff | blob | blame | history
src/backend/utils/init/globals.c diff | blob | blame | history
src/include/postmaster/autovacuum.h diff | blob | blame | history
src/include/postmaster/auxprocess.h diff | blob | blame | history
src/include/postmaster/bgworker_internals.h diff | blob | blame | history
src/include/postmaster/bgwriter.h diff | blob | blame | history
src/include/postmaster/pgarch.h diff | blob | blame | history
src/include/postmaster/postmaster.h diff | blob | blame | history
src/include/postmaster/startup.h diff | blob | blame | history
src/include/postmaster/syslogger.h diff | blob | blame | history
src/include/postmaster/walsummarizer.h diff | blob | blame | history
src/include/postmaster/walwriter.h diff | blob | blame | history
src/include/replication/slotsync.h diff | blob | blame | history
src/include/replication/walreceiver.h diff | blob | blame | history
src/tools/pgindent/typedefs.list diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /