Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0e4a07

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp