Re: BUG #6340: to_timestamp() miscalculates - Mailing list pgsql-bugs

From Robert Haas
Subject Re: BUG #6340: to_timestamp() miscalculates
Date
Msg-id CA+TgmoafHC-qikDq0LFxXKbtNEPGeA0Rq=9P=u8KjtmpWjNE5w@mail.gmail.com
Whole thread Raw
In response to Re: BUG #6340: to_timestamp() miscalculates  (Hans-Henrik Fuxelius <hfuxelius@gmail.com>)
List pgsql-bugs
On Fri, Dec 16, 2011 at 3:43 AM, Hans-Henrik Fuxelius
<hfuxelius@gmail.com> wrote:
> It seems not possible to suppress to_timestamp from doing daylight
> saving conversion, I have GPS timeseries that looks perfect in the
> 'timestamp without time zone' save one value that wreck the whole time
> serie, does that mean that time series cant be stored in time stamps?

I think it mostly means that you shouldn't use timestamp without time zone.

Or else you should use a time zone setting that doesn't involve DST.

Throwing away the time zone information is bad, because YYYY-MM-DD
HH:MM:SS doesn't uniquely identify a point in time, even if you know
what time zone it's relative to.  That combination of years, minutes,
days, hours, minutes, and seconds can occur twice, if it's near a DST
boundary.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: user names & non-ASCII
Next
From: Tom Lane
Date:
Subject: Re: BUG #6341: Packaging - virtual provides "postgres" without version