From: | Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at> |
---|---|
To: | lockhart(at)fourpalms(dot)org |
Cc: | Pete Forman <pete(dot)forman(at)westerngeco(dot)com>, "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | AW: AW: AW: Re: tinterval - operator problems on AIX |
Date: | 2001-01-17 10:22:12 |
Message-ID: | 11C1E6749A55D411A9670001FA6879633681BA@sdexcsrv1.f000.d0188.sd.spardat.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > > > Yes, the annoyance is, that localtime works for dates before 1970
> > > > but mktime doesn't. Best would probably be to assume no DST before
> > > > 1970 on AIX and IRIX.
> > >
> > > That seems like a reasonable answer to me, especially since we have
> > > other platforms that behave that way. How can we do this --- just
> > > test for isdst = -1 after the call, and assume that means failure?
>
> Are you working on this, or can you point me to the parts of the code,
> that would need change ?
Here is a patch that should make AIX and IRIX more happy.
It changes all checks for tm_isdst to (tm_isdst > 0) and fixes
the expected horology file for AIX.
I just now realized, that the new expected file (while still bogous) is more correct
than the old one.
Thanks to Tom for mentioning that the hour should stay the same when subtracting
days from a timestamp.
Please apply.
Andreas
Attachment | Content-Type | Size |
---|---|---|
aixisdst.patch | application/octet-stream | 5.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Zeugswetter Andreas SB | 2001-01-17 11:23:50 | AW: AW: AW: Re: tinterval - operator problems on AIX |
Previous Message | Zeugswetter Andreas SB | 2001-01-17 09:10:23 | AW: Re: Performance degradation in PostgreSQL 7.1beta3 vs 6.5.3 |