diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-25 01:23:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-25 01:23:34 +0000 |
commit | d0e4a076d1094f374c0e67ebebd0e0d403415fe8 (patch) | |
tree | 7ad0e9766aa0265c3b43f06965729bf2bfb08c61 /src | |
parent | e85b5dae6c0ba2b73864e8c05ae22a7c17b8a629 (diff) | |
download | postgresql-d0e4a076d1094f374c0e67ebebd0e0d403415fe8.tar.gz postgresql-d0e4a076d1094f374c0e67ebebd0e0d403415fe8.zip |
Make the order of operations in PostmasterMain a bit saner ... some
recent patches had added stuff in rather random spots.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 6c8cf982ce6..9d4bc76755a 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.495 2006/07/16 18:17:14 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.496 2006/07/25 01:23:34 tgl Exp $ * * NOTES * @@ -814,6 +814,12 @@ PostmasterMain(int argc, char *argv[]) set_max_safe_fds(); /* + * Load configuration files for client authentication. + */ + load_hba(); + load_ident(); + + /* * Initialize the list of active backends. */ BackendList = DLNewList(); @@ -920,20 +926,15 @@ PostmasterMain(int argc, char *argv[]) whereToSendOutput = DestNone; /* - * Initialize the statistics collector stuff + * Initialize stats collection subsystem (this does NOT start the + * collector process!) */ pgstat_init(); /* - * Load configuration files for client authentication. - */ - load_hba(); - load_ident(); - - /* - * We're ready to rock and roll... + * Initialize the autovacuum subsystem (again, no process start yet) */ - StartupPID = StartupDataBase(); + autovac_init(); /* * Remember postmaster startup time @@ -941,9 +942,9 @@ PostmasterMain(int argc, char *argv[]) PgStartTime = GetCurrentTimestamp(); /* - * Initialize the autovacuum daemon + * We're ready to rock and roll... */ - autovac_init(); + StartupPID = StartupDataBase(); status = ServerLoop(); |