Pass MyPMChildSlot as an explicit argument to child process
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 14 Nov 2024 14:12:32 +0000 (16:12 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 14 Nov 2024 14:12:32 +0000 (16:12 +0200)
commit5b007868577ae18d419c01ee739e5674fa8b2acf
treea810280c0276ab42a5264ea472007f9175bdbc74
parenta78af0427015449269fb7d9d8c6057cfcb740149
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
src/backend/postmaster/launch_backend.c
src/backend/postmaster/postmaster.c
src/backend/postmaster/syslogger.c
src/include/postmaster/postmaster.h