pgsql: Remove redundant SetProcessingMode(InitProcessing) calls

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove redundant SetProcessingMode(InitProcessing) calls
Date: 2024-07-02 17:17:21
Message-ID: E1sOh83-0003WP-O0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/CACpMh%2BDBHVT4xPGimzvex%3DwMdMLQEu9PYhT%2BkwwD2x2nu9dU_Q%40mail.gmail.com

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2024-07-02 18:04:27 pgsql: Add CODE_OF_CONDUCT.md, CONTRIBUTING.md, and SECURITY.md.
Previous Message Nathan Bossart 2024-07-02 16:24:12 pgsql: pg_dump: Remove some unused return values.