Re: Interval "1 month" is equals to interval "30 days" - WHY?

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Interval "1 month" is equals to interval "30 days" - WHY?
Дата
Msg-id 50226C17.2000900@ringerc.id.au
обсуждение исходный текст
Ответ на Re: Interval "1 month" is equals to interval "30 days" - WHY?  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Список pgsql-general
On 08/08/2012 08:56 PM, Albe Laurenz wrote:
>
> Hmmm.  How would you define an ordering in that case?
> And without an ordering, you couldn't use "btree" indexes
> on interval columns, right?
Or, as Anthony noted, what about leap seconds?

I'm not advocating changing the behaviour of interval types. They're a
compromise for best functionality in the face of crazy and stupid
real-world rules.  I just wanted to point out that intervals are
inconsistent in all sorts of ways, and that there really isn't a good
answer.

--
Craig Ringer

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

Предыдущее
От: mwkhan
Дата:
Сообщение: pgAgent job keeps running
Следующее
От: Samba
Дата:
Сообщение: Re: warnings about invalid "search_path"