Re: BUG #6192: Incorrect result from operator "overlaps"

Поиск
Список
Период
Сортировка
От Vik Reykja
Тема Re: BUG #6192: Incorrect result from operator "overlaps"
Дата
Msg-id CALDgxVsBuicp6N74CG3+A6bNcOwHkwFooU+JE=SQzU1_bZERWg@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #6192: Incorrect result from operator "overlaps"  ("Incorrect result from operator "overlaps"" <wolfmoon@o2.pl>)
Список pgsql-bugs
On Thu, Sep 1, 2011 at 10:27, Incorrect result from operator <wolfmoon@o2.pl
> wrote:

>
> SELECT ('2011-08-31'::date,'2011-08-31'::date) overlaps
> ('2011-08-1'::date,'2011-08-31'::date);
> Returns false, should return true.
>

According to the documentation, it should return false.

"Each time period is considered to represent the half-open interval start <=
time < end, unless start and end are equal in which case it represents that
single time instant. This means for instance that two time periods with only
an endpoint in common do not overlap."

http://www.postgresql.org/docs/current/static/functions-datetime.html

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

Предыдущее
От: Lampa
Дата:
Сообщение: Re: BUG #6186: out of memory while analyze
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6192: Incorrect result from operator "overlaps"