Re: [HACKERS] Date/time on glibc2 linux - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] Date/time on glibc2 linux
Date
Msg-id 366FF9C7.3DCF8CFD@alumni.caltech.edu
Whole thread Raw
In response to Re: [HACKERS] Date/time on glibc2 linux  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] Date/time on glibc2 linux
List pgsql-hackers
> Yes, the autoconf test just checks for a global variable "timezone"
> declared in <time.h>.  It'd probably be better to reverse the test to
> check for the timezone fields in a struct tm.  I don't much care for
> the name of the configuration symbol either ... maybe change it to
> HAVE_STRUCT_TM_TZ_FIELDS ?

Could we have a longer name please? :)

That would be fine. How about if we continue to test for the other too
and then the code can choose which one to enable. I can flip around the
source blocks to get the right sense. I think this may help the Alpha
port also, since I vaguely recall that Dec/Compaq (*sigh*) ran afoul of
our tests too. And although the BSD-style TZ-in-tm seemed to be old
fashioned, with reentrant/threaded code it is the wave of the future so
could/should be the first choice for the code to consider.
                   - Tom


pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Re: MIN(text)/MAX(text)
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: AW: [HACKERS] isnull() or is it?t