Skip to content

Commit d0e4a07

Browse files
committed
Make the order of operations in PostmasterMain a bit saner ... some
recent patches had added stuff in rather random spots.
1 parent e85b5da commit d0e4a07

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.495 2006/07/16 18:17:14 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.496 2006/07/25 01:23:34 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -813,6 +813,12 @@ PostmasterMain(int argc, char *argv[])
813813
*/
814814
set_max_safe_fds();
815815

816+
/*
817+
* Load configuration files for client authentication.
818+
*/
819+
load_hba();
820+
load_ident();
821+
816822
/*
817823
* Initialize the list of active backends.
818824
*/
@@ -920,30 +926,25 @@ PostmasterMain(int argc, char *argv[])
920926
whereToSendOutput = DestNone;
921927

922928
/*
923-
* Initialize the statistics collector stuff
929+
* Initialize stats collection subsystem (this does NOT start the
930+
* collector process!)
924931
*/
925932
pgstat_init();
926933

927934
/*
928-
* Load configuration files for client authentication.
929-
*/
930-
load_hba();
931-
load_ident();
932-
933-
/*
934-
* We're ready to rock and roll...
935+
* Initialize the autovacuum subsystem (again, no process start yet)
935936
*/
936-
StartupPID = StartupDataBase();
937+
autovac_init();
937938

938939
/*
939940
* Remember postmaster startup time
940941
*/
941942
PgStartTime = GetCurrentTimestamp();
942943

943944
/*
944-
* Initialize the autovacuum daemon
945+
* We're ready to rock and roll...
945946
*/
946-
autovac_init();
947+
StartupPID = StartupDataBase();
947948

948949
status = ServerLoop();
949950

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy