Re: BUG #2768: dates before year 1600 in timestamptz column give strange results - Mailing list pgsql-bugs

From Heikki Linnakangas
Subject Re: BUG #2768: dates before year 1600 in timestamptz column give strange results
Date
Msg-id 4562DC61.30502@enterprisedb.com
Whole thread Raw
In response to Re: BUG #2768: dates before year 1600 in timestamptz column give strange results  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom Lane wrote:
> "Mikko Tiihonen" <mikko.tiihonen@iki.fi> writes:
>> PostgreSQL compiled with intdatetime=off
>>               stamp
>> ----------------------------------
>>  0134-05-06 08:52:26.123459+01:39
>>  2134-05-06 09:12:34.123456+02
>> (2 rows)
>
> [ shrug... ]  Floating-point timestamps are not perfectly accurate; the
> further away you go from 2000-01-01, the less so.

Agreed.

>  The weird offset from GMT is probably a function of your local timezone, which you didn't
> mention.

Most likely "Europe/Helsinki". I can reproduce the problem with that:

postgres=# set time zone 'Europe/Helsinki';
SET
postgres=# SELECT * FROM tester;
                 stamp
-------------------------------------
  0134-05-06 08:52:26.123459+01:39:52
  2134-05-06 09:12:34.123456+02
(2 rows)

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

pgsql-bugs by date:

Previous
From: "Heikki Linnakangas"
Date:
Subject: Re: BUG #2768: dates before year 1600 in timestamptz column give strange results
Next
From: Tom Lane
Date:
Subject: Re: BUG #2768: dates before year 1600 in timestamptz column give strange results