Re: Comment on timezone and interval types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Comment on timezone and interval types
Дата
Msg-id 26354.1099669172@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Comment on timezone and interval types  (Stuart Bishop <stuart@stuartbishop.net>)
Список pgsql-general
Stuart Bishop <stuart@stuartbishop.net> writes:
> | If you want 24 hours you can use 24 hours. Days are not constant length,
> | just like months aren't constant length.

> Days *are* of constant length - check your nearest dictionary, which
> will define it as 24 hours or the period of rotation of the earth.

This is about as relevant to our problems as claiming that we should
ignore leap years because years are really of constant length.

We are trying to emulate the common civil calendar here, and in places
that observe DST, days are *not* of constant length.  If you don't like
this, why are you using the timestamp-with-time-zone datatype (or at
least, why are you using it with a DST-aware zone setting)?

timestamp-without-time-zone will continue to behave as it always has,
so that seems to me to offer a sufficient out for people who really
truly do not want DST-aware calculations.

            regards, tom lane

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

Предыдущее
От: "Bob Powell"
Дата:
Сообщение: restoring pgdump file file from 7.2 branch to 7.4
Следующее
От: stefari@tiscali.it
Дата:
Сообщение: start postmaster as root : problem