diff options
author | Heikki Linnakangas | 2024-11-14 14:12:32 +0000 |
---|---|---|
committer | Heikki Linnakangas | 2024-11-14 14:12:32 +0000 |
commit | 5b007868577ae18d419c01ee739e5674fa8b2acf (patch) | |
tree | a810280c0276ab42a5264ea472007f9175bdbc74 /src/include | |
parent | a78af0427015449269fb7d9d8c6057cfcb740149 (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.h | 1 |
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); |