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: Refactor how InitProcess is called
Date: Sun, 03 Dec 2023 14:41:03 +0000
Message-ID: <E1r9neZ-008PJn-Ev@gemulon.postgresql.org> (raw)

Refactor how InitProcess is called

The order of process initialization steps is now more consistent
between !EXEC_BACKEND and EXEC_BACKEND modes. InitProcess() is called
at the same place in either mode. We can now also move the
AttachSharedMemoryStructs() call into InitProcess() itself. This
reduces the number of "#ifdef EXEC_BACKEND" blocks.

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/fd5e8b440dfd633be74e3dd3382d4a9038dba24f

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 16 ++++---------
src/backend/postmaster/auxprocess.c |  5 +----
src/backend/postmaster/bgworker.c   |  8 ++-----
src/backend/postmaster/postmaster.c | 45 +++++--------------------------------
src/backend/storage/lmgr/proc.c     | 24 ++++++++++++++++++--
5 files changed, 35 insertions(+), 63 deletions(-)



Message-ID: <E1r9neZ-008PJn-Ev@gemulon.postgresql.org>
Permalink:  ../E1r9neZ-008PJn-Ev@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1r9neZ-008PJn-Ev@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: Refactor how InitProcess is called
  In-Reply-To: <E1r9neZ-008PJn-Ev@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