pgsql: Pass MyPMChildSlot as an explicit argument to child process - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Pass MyPMChildSlot as an explicit argument to child process
Date
Msg-id E1tBaaw-001mWD-Q2@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove a useless cast to (void *) in hash_search() call
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix race conditions with drop of reused pgstats entries