Re: BUG #6192: Incorrect result from operator "overlaps" - Mailing list pgsql-bugs

From Vik Reykja
Subject Re: BUG #6192: Incorrect result from operator "overlaps"
Date
Msg-id CALDgxVsBuicp6N74CG3+A6bNcOwHkwFooU+JE=SQzU1_bZERWg@mail.gmail.com
Whole thread Raw
In response to BUG #6192: Incorrect result from operator "overlaps"  ("Incorrect result from operator "overlaps"" <wolfmoon@o2.pl>)
List 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 by date:

Previous
From: Lampa
Date:
Subject: Re: BUG #6186: out of memory while analyze
Next
From: Tom Lane
Date:
Subject: Re: BUG #6192: Incorrect result from operator "overlaps"