Re: [HACKERS] Timezone problems / HAVE_INT_TIMEZINE - Mailing list pgsql-hackers

From Maarten Boekhold
Subject Re: [HACKERS] Timezone problems / HAVE_INT_TIMEZINE
Date
Msg-id Pine.SUN.3.91.980319160830.14085F-100000@dutepp2.et.tudelft.nl
Whole thread Raw
In response to Re: [HACKERS] Timezone problems / HAVE_INT_TIMEZINE  (Dwayne Bailey <dwayne@mika.com>)
Responses Re: [HACKERS] Timezone problems / HAVE_INT_TIMEZINE
List pgsql-hackers
> However, what I also discovered in that these values are not set
> until after the tzset() routine is called.  Is that normal
> behavior?  Doing a grep for tzset in the PG sources revealed
> that it's only called for a few SQL commands.  Is it called
> anywhere as part of startup processing, and I'm just missing it?
> Or is the DEC implementation the only one that requires an
> explicit tzset() call before the use of these variables?

AFAIK tzset() is called automagically by all time-related libc routines
when they detect it is not set yet (at least I think with Linux it is
done this way. It's been a long time since I looked at that).

Maarten

_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems  |
|                   Department of Electrical Engineering                    |
|           Computer Architecture and Digital Technique section             |
|                          M.Boekhold@et.tudelft.nl                         |
-----------------------------------------------------------------------------

pgsql-hackers by date:

Previous
From: Dwayne Bailey
Date:
Subject: Re: [HACKERS] Timezone problems / HAVE_INT_TIMEZINE
Next
From: Dwayne Bailey
Date:
Subject: Re: [HACKERS] Timezone problems / HAVE_INT_TIMEZINE