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 <and...@anarazel.de> Discussion: https://www.postgresql.org/message-id/a102f15f-eac4-4ff2-af02-f9ff209ec...@iki.fi Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5b007868577ae18d419c01ee739e5674fa8b2acf Modified Files -------------- src/backend/postmaster/launch_backend.c | 37 +++++++++++++++++++++------------ src/backend/postmaster/postmaster.c | 10 ++++----- src/backend/postmaster/syslogger.c | 7 ++++--- src/include/postmaster/postmaster.h | 1 + 4 files changed, 33 insertions(+), 22 deletions(-)