Pass MyPMChildSlot as an explicit argument to child process
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/launch_backend.c | modified | +24 −13 |
| src/backend/postmaster/postmaster.c | modified | +4 −6 |
| src/backend/postmaster/syslogger.c | modified | +4 −3 |
| src/include/postmaster/postmaster.h | modified | +1 −0 |
Discussion
- Refactoring postmaster's code to cleanup after child exit 47 messages · 2024-07-06 → 2026-07-07