Re: BUG #6340: to_timestamp() miscalculates
От | Robert Haas |
---|---|
Тема | Re: BUG #6340: to_timestamp() miscalculates |
Дата | |
Msg-id | CA+TgmoafHC-qikDq0LFxXKbtNEPGeA0Rq=9P=u8KjtmpWjNE5w@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: BUG #6340: to_timestamp() miscalculates (Hans-Henrik Fuxelius <hfuxelius@gmail.com>) |
Список | 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 по дате отправления: