mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Remove now-unnecessary Autovacuum[Launcher|Worker]IAm functions
After commit fd5e8b440d, InitProcess() is called later in the
EXEC_BACKEND startup sequence, so it's enough to set the
am_autovacuum_[launcher|worker] variables at the same place as in the
!EXEC_BACKEND case.
This commit is contained in:
@@ -4842,12 +4842,6 @@ SubPostmasterMain(int argc, char *argv[])
|
||||
else
|
||||
PGSharedMemoryNoReAttach();
|
||||
|
||||
/* autovacuum needs this set before calling InitProcess */
|
||||
if (strcmp(argv[1], "--forkavlauncher") == 0)
|
||||
AutovacuumLauncherIAm();
|
||||
if (strcmp(argv[1], "--forkavworker") == 0)
|
||||
AutovacuumWorkerIAm();
|
||||
|
||||
/* Read in remaining GUC variables */
|
||||
read_nondefault_variables();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user