From 5b007868577ae18d419c01ee739e5674fa8b2acf Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 14 Nov 2024 16:12:32 +0200 Subject: Pass MyPMChildSlot as an explicit argument to child process All the other global variables passed from postmaster to child have the same value in all the processes, while MyPMChildSlot is more like a parameter to each child process. Reviewed-by: Andres Freund Discussion: https://www.postgresql.org/message-id/a102f15f-eac4-4ff2-af02-f9ff209ec66f@iki.fi --- src/include/postmaster/postmaster.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/postmaster/postmaster.h b/src/include/postmaster/postmaster.h index a55e7a79fa4..f05eb1c470b 100644 --- a/src/include/postmaster/postmaster.h +++ b/src/include/postmaster/postmaster.h @@ -108,6 +108,7 @@ extern PGDLLIMPORT struct ClientSocket *MyClientSocket; /* prototypes for functions in launch_backend.c */ extern pid_t postmaster_child_launch(BackendType child_type, + int child_slot, char *startup_data, size_t startup_data_len, struct ClientSocket *client_sock); -- cgit v1.2.3