diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-05-21 05:08:06 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-05-21 05:08:06 +0000 |
commit | 63bd0db12199c5df043e1dea0f2b574f622b3a4c (patch) | |
tree | dbafdb6e4541162ad369dbfeca24cbd62aefddcc /src/backend/tcop/postgres.c | |
parent | 260b513fc37b6ed2df51586c487d0832b89d0d70 (diff) | |
download | postgresql-63bd0db12199c5df043e1dea0f2b574f622b3a4c.tar.gz postgresql-63bd0db12199c5df043e1dea0f2b574f622b3a4c.zip |
Integrate src/timezone library for all platforms. There is more we can
and should do now that we control our own destiny for timezone handling,
but this commit gets the bulk of the picayune diffs in place.
Magnus Hagander and Tom Lane.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 1c3e0c28475..d097612ba30 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.412 2004/05/19 21:17:33 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.413 2004/05/21 05:07:58 tgl Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -21,8 +21,6 @@ #include <unistd.h> #include <signal.h> -#include <time.h> -#include <sys/time.h> #include <fcntl.h> #include <sys/socket.h> #include <errno.h> @@ -48,6 +46,7 @@ #include "optimizer/planner.h" #include "parser/analyze.h" #include "parser/parser.h" +#include "pgtime.h" #include "rewrite/rewriteHandler.h" #include "storage/freespace.h" #include "storage/ipc.h" @@ -2145,7 +2144,7 @@ PostgresMain(int argc, char *argv[], const char *username) char stack_base; StringInfoData input_message; volatile bool send_rfq = true; - + /* * Catch standard options before doing much else. This even works on * systems without getopt_long. @@ -2566,6 +2565,9 @@ PostgresMain(int argc, char *argv[], const char *username) } else ProcessConfigFile(PGC_POSTMASTER); + /* If timezone is not set, determine what the OS uses */ + pg_timezone_initialize(); + /* * Set up signal handlers and masks. * |