Re: abstime bug - Mailing list pgsql-bugs

From Tom Lane
Subject Re: abstime bug
Date
Msg-id 16037.1122062224@sss.pgh.pa.us
Whole thread Raw
In response to Re: abstime bug  (Michael Fuhr <mike@fuhr.org>)
List pgsql-bugs
Michael Fuhr <mike@fuhr.org> writes:
> SET TimeZone TO 'Asia/Hong_Kong';
> SELECT '1901/12/14 1:00'::abstime;
>         abstime
> ------------------------
>  2038-01-19 07:51:40+08
> (1 row)

> I'd guess this is due to the 32-bitness of abstime.  Those timestamps
> are around the min and max values of a 32-bit timestamp based on the
> traditional Unix epoch.

Fixed in CVS tip:

regression=# SET TimeZone TO 'Asia/Hong_Kong';
SET
regression=# SELECT '1901/12/14 1:00'::abstime;
 abstime
---------
 invalid
(1 row)

Doesn't seem important enough to back-patch, though.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Kris Jurka
Date:
Subject: Re: [JDBC] BUG #1780: JDBC driver "setNull" throws for BLOB
Next
From: "Andrew Smith"
Date:
Subject: BUG #1781: result of cascading triggers not available until function exits.