AW: Re: tinterval - operator problems on AIX - Mailing list pgsql-hackers

From Zeugswetter Andreas SB
Subject AW: Re: tinterval - operator problems on AIX
Date
Msg-id 11C1E6749A55D411A9670001FA6879633681A1@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
List pgsql-hackers
> The time zone is now evaluated in the time zone of the result, rather
> than the input, using system support routines from libc. 

Ok, I have the answer.

On AIX mktime(3) leaves tm_isdst at -1 if it does not have timezone 
info for that particular year and returns -1.
From man page:The mktime subroutine returns the specified time in seconds encoded as a value oftype time_t. If the time
cannotbe represented, the function returns the value(time_t)-1.
 

The following code then makes savings time out of the -1.                                       tz = (tm->tm_isdst ?
(timezone- 3600) : timezone);
 

What now ?

Andreas


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Well, we seem to be proof against cache-inval problems now
Next
From: Oleg Bartunov
Date:
Subject: GiST for 7.1 !!