pgsql: Pass MyPMChildSlot as an explicit argument to child process

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Pass MyPMChildSlot as an explicit argument to child process
Date: 2024-11-14 14:13:15
Message-ID: E1tBaaw-001mWD-Q2@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)anarazel(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-11-15 02:33:15 pgsql: Fix race conditions with drop of reused pgstats entries
Previous Message Peter Eisentraut 2024-11-14 08:37:22 pgsql: Remove a useless cast to (void *) in hash_search() call