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

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Interval "1 month" is equals to interval "30 days" - WHY?
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C208419839@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Interval "1 month" is equals to interval "30 days" - WHY?  (Craig Ringer <ringerc@ringerc.id.au>)
Ответы Re: Interval "1 month" is equals to interval "30 days" - WHY?
Список pgsql-general
Craig Ringer wrote:
>> Of course this is not always correct.
>> But what should the result of
>>    INTERVAL '1 month' = INTERVAL '30 days'
>> be?  FALSE would be just as wrong.

> NULL? In all honesty, it's a reasonable fit for NULL in its
> "uncertain/unknowable" personality,  because two intervals that don't
> use the same time scales aren't truly comparable for equality.

Hmmm.  How would you define an ordering in that case?
And without an ordering, you couldn't use "btree" indexes
on interval columns, right?

Yours,
Laurenz Albe

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

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Interval "1 month" is equals to interval "30 days" - WHY?
Следующее
От: mwkhan
Дата:
Сообщение: pgAgent job keeps running