From ea19eb999d7121aba8eefce98051c7cafa376d6d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 20 Oct 2005 20:06:03 +0000 Subject: 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. --- src/backend/bootstrap/bootstrap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/backend/bootstrap/bootstrap.c') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 47d68518ec8..316ce270c21 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.198 2005/01/14 21:08:44 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.198.4.1 2005/10/20 20:06:02 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -354,6 +354,8 @@ BootstrapMain(int argc, char *argv[]) { if (!SelectConfigFiles(userDoption, progname)) proc_exit(1); + /* If timezone is not set, determine what the OS uses */ + pg_timezone_initialize(); } /* Validate we have been given a reasonable-looking DataDir */ -- cgit v1.2.3