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: Remove redundant SetProcessingMode(InitProcessing) calls
Date: Tue, 02 Jul 2024 17:17:21 +0000
Message-ID: <E1sOh83-0003WP-O0@gemulon.postgresql.org> (raw)

Remove redundant SetProcessingMode(InitProcessing) calls

After several refactoring iterations, auxiliary processes are no
longer initialized from the bootstrapper. Using the InitProcessing
mode for initializing auxiliary processes is more appropriate. Since
the global variable Mode is initialized to InitProcessing, we can just
remove the redundant calls of SetProcessingMode(InitProcessing).

Author: Xing Guo <higuoxing@gmail.com>
Discussion: https://www.postgresql.org/message-id/CACpMh%2BDBHVT4xPGimzvex%3DwMdMLQEu9PYhT%2BkwwD2x2nu9dU_Q%40ma...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/eb21f5bc67a02eb6f7de1bd2f07acdd471a4d320

Modified Files
--------------
src/backend/postmaster/autovacuum.c        | 4 ++--
src/backend/postmaster/auxprocess.c        | 3 ++-
src/backend/postmaster/bgworker.c          | 2 +-
src/backend/replication/logical/slotsync.c | 2 +-
src/backend/tcop/postgres.c                | 2 +-
5 files changed, 7 insertions(+), 6 deletions(-)



Message-ID: <E1sOh83-0003WP-O0@gemulon.postgresql.org>
Permalink:  ../E1sOh83-0003WP-O0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sOh83-0003WP-O0@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: Remove redundant SetProcessingMode(InitProcessing) calls
  In-Reply-To: <E1sOh83-0003WP-O0@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