pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Pass BackgroundWorker entry in the parameter file in EXEC_BACKEN
Date: Sun, 03 Dec 2023 14:41:03 +0000
Message-ID: <E1r9neZ-008PJk-EG@gemulon.postgresql.org> (raw)

Pass BackgroundWorker entry in the parameter file in EXEC_BACKEND mode

The BackgroundWorker struct is now passed the same way as the Port
struct. Seems more consistent.

This makes it possible to move InitProcess later in SubPostmasterMain
(in next commit), as we no longer need to access shared memory to read
background worker entry.

Reviewed-by: Tristan Partin, Andres Freund, Alexander Lakhin
Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3-8b01ff7ce9ef@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/388491f1e5e63fe97c7cca26d18b64321973d423

Modified Files
--------------
src/backend/postmaster/bgworker.c           |  23 +-----
src/backend/postmaster/postmaster.c         | 120 +++++++++++++++++-----------
src/include/postmaster/bgworker_internals.h |   4 -
3 files changed, 75 insertions(+), 72 deletions(-)



Message-ID: <E1r9neZ-008PJk-EG@gemulon.postgresql.org>
Permalink:  ../E1r9neZ-008PJk-EG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1r9neZ-008PJk-EG@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Pass BackgroundWorker entry in the parameter file in EXEC_BACKEN
  In-Reply-To: <E1r9neZ-008PJk-EG@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox