Fix crash caused by log_timezone patch if we attempt to emit any elog messages
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Aug 2007 19:29:25 +0000 (19:29 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Aug 2007 19:29:25 +0000 (19:29 +0000)
commit4755abf3ac27f026291e84c9fd4d6bea484cc0be
tree8d4f60b5c89aac7e170d14248fd73d565dcf6c12
parentee6c579fe417d82fe17c749cebe3dd0578df90da
Fix crash caused by log_timezone patch if we attempt to emit any elog messages
between the setting of log_line_prefix and the setting of log_timezone.  We
can't realistically set log_timezone any earlier than we do now, so the best
behavior seems to be to use GMT zone if any timestamps are to be logged during
early startup.  Create a dummy zone variable with a minimal definition of GMT
(in particular it will never know about leap seconds), so that we can set it
up without reference to any external files.
src/backend/utils/error/elog.c
src/backend/utils/misc/guc.c
src/include/pgtime.h
src/timezone/localtime.c
src/timezone/pgtz.c