Re: Problem with 7.3 on Irix with dates before 1970

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bruc(at)acm(dot)org
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problem with 7.3 on Irix with dates before 1970
Date: 2002-11-08 21:48:21
Message-ID: 28096.1036792101@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Robert E. Bruccoleri" <bruc(at)stone(dot)congenomics(dot)com> writes:
> There are differences in the regression tests for PostgreSQL
> 7.3b2 with handling of times before 1970. I recently sent out a set of
> diffs for the changes. I've looked through the datetime.c code, but
> it's not obvious to me what the cause of the change is. PostgreSQL 7.2
> works fine on Irix for these cases.

I have a feeling that it's got something to do with the workaround for
broken mktime() that I recently put in. Could you try this experiment
and see what you get? (This should at least tell us whether the
variance from common behavior is on the input side or the output side.)

regression=# set TimeZone TO 'PST8PDT';
SET
regression=# select abstime 'May 10, 1947 23:59:12';
abstime
------------------------
1947-05-10 23:59:12-08
(1 row)

regression=# select (abstime 'May 10, 1947 23:59:12')::int4;
int4
------------
-714585648
(1 row)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert E. Bruccoleri 2002-11-08 22:31:20 Re: Problem with 7.3 on Irix with dates before 1970
Previous Message Robert E. Bruccoleri 2002-11-08 21:33:42 Problem with 7.3 on Irix with dates before 1970