From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: process startup: Separate out BootstrapModeMain from AuxiliaryPr
Date: Thu, 05 Aug 2021 19:26:25 +0000
Message-ID: <E1mBj0b-0007aU-6h@gemulon.postgresql.org> (raw)
process startup: Separate out BootstrapModeMain from AuxiliaryProcessMain.
There practically was no shared code between the two, once all the ifs are
removed. And it was quite confusing that aux processes weren't actually
started by the call to AuxiliaryProcessMain() in main().
There's more to do, AuxiliaryProcessMain() should move out of bootstrap.c, and
BootstrapModeMain() shouldn't use/be part of AuxProcType.
Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-By: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/20210802164124.ufo5buo4apl6yuvs@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5aa4a9d2077fa902b4041245805082fec6be0648
Modified Files
--------------
src/backend/bootstrap/bootstrap.c | 324 ++++++++++++++++++------------------
src/backend/main/main.c | 2 +-
src/backend/postmaster/postmaster.c | 43 ++---
src/include/bootstrap/bootstrap.h | 4 +-
4 files changed, 187 insertions(+), 186 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: process startup: Separate out BootstrapModeMain from AuxiliaryPr
In-Reply-To: <E1mBj0b-0007aU-6h@gemulon.postgresql.org>
References: <E1mBj0b-0007aU-6h@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