summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorHeikki Linnakangas2024-11-14 14:12:32 +0000
committerHeikki Linnakangas2024-11-14 14:12:32 +0000
commit5b007868577ae18d419c01ee739e5674fa8b2acf (patch)
treea810280c0276ab42a5264ea472007f9175bdbc74 /src/include
parenta78af0427015449269fb7d9d8c6057cfcb740149 (diff)
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 <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/a102f15f-eac4-4ff2-af02-f9ff209ec66f@iki.fi
Diffstat (limited to 'src/include')
-rw-r--r--src/include/postmaster/postmaster.h1
1 files changed, 1 insertions, 0 deletions
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);