Re: Is there a better way to do this?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is there a better way to do this?
Дата
Msg-id 16118.1188347420@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is there a better way to do this?  (Michael Glaesemann <grzm@seespotcode.net>)
Ответы Re: Is there a better way to do this?
Список pgsql-general
Michael Glaesemann <grzm@seespotcode.net> writes:
> Note that interval '1 day' is not equal to interval '24 hours'. '1
> day' can be 23 or 25 hours across daylight saving time boundaries.

When you are adding to timestamp without time zone, they *are*
interchangeable, since no daylight-savings arithmetic is involved.
Michael's right for the case of adding to timestamp with time zone,
though.

> Do you *really* want timestamp without time zone?

I agree with that comment --- you should at least think hard
about what you are trying to represent.  The "date" type is also
worth considering if time-of-day isn't so important to you.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "D. Dante Lorenso"
Дата:
Сообщение: Re: Is there a better way to do this?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Out of Memory - 8.2.4