diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-20 20:06:03 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-20 20:06:03 +0000 |
commit | ea19eb999d7121aba8eefce98051c7cafa376d6d (patch) | |
tree | bb9774bfd430568c956def437874c12461ce222b /src/backend/tcop/postgres.c | |
parent | 09290098c5a44f5b98f328740dddaac726f68dcc (diff) | |
download | postgresql-ea19eb999d7121aba8eefce98051c7cafa376d6d.tar.gz postgresql-ea19eb999d7121aba8eefce98051c7cafa376d6d.zip |
Postpone pg_timezone_initialize() until after creation of postmaster.pid,
since it can take a fair amount of time and this can confuse boot scripts
that expect postmaster.pid to appear quickly. Move initialization of SSL
library and preloaded libraries to after that point, too, just for luck.
Per reports from Tony Caduto and others.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index ef2fcf1f9c1..232a4750fd3 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.440.4.2 2005/06/02 21:03:46 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.440.4.3 2005/10/20 20:06:03 tgl Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -2645,6 +2645,8 @@ PostgresMain(int argc, char *argv[], const char *username) { if (!SelectConfigFiles(userDoption, argv[0])) proc_exit(1); + /* If timezone is not set, determine what the OS uses */ + pg_timezone_initialize(); } /* |