From aafc05de1bf5c0324cb5e690c6742118c1ac4af6 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 18 Mar 2024 11:35:08 +0200 Subject: 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 --- src/tools/pgindent/typedefs.list | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tools') diff --git a/src/tools/pgindent/typedefs.list b/src/tools/pgindent/typedefs.list index 6ca93b1e478..042d04c8de2 100644 --- a/src/tools/pgindent/typedefs.list +++ b/src/tools/pgindent/typedefs.list @@ -231,6 +231,7 @@ BY_HANDLE_FILE_INFORMATION Backend BackendId BackendParameters +BackendStartupData BackendState BackendType BackgroundWorker @@ -2136,6 +2137,7 @@ PortalStrategy PostParseColumnRefHook PostgresPollingStatusType PostingItem +PostmasterChildType PreParseColumnRefHook PredClass PredIterInfo @@ -3259,6 +3261,7 @@ check_network_data check_object_relabel_type check_password_hook_type check_ungrouped_columns_context +child_process_kind chr cmpEntriesArg codes_t @@ -4042,6 +4045,7 @@ BlockRefTableReader BlockRefTableSerializedEntry BlockRefTableWriter SummarizerReadLocalXLogPrivate +SysloggerStartupData WalSummarizerData WalSummaryFile WalSummaryIO -- cgit v1.2.3