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