Re: Why overlaps is not working - Mailing list pgsql-general

From Andrus
Subject Re: Why overlaps is not working
Date
Msg-id eivcpc$2htf$2@news.hub.org
Whole thread Raw
In response to Why overlaps is not working  ("Andrus" <eetasoft@online.ee>)
Responses Re: Why overlaps is not working
List pgsql-general
> They're adjacent, they don't overlap. Check the documentation on OVERLAPS,
> I'm sure it's explicit about whether it is inclusive or exclusive (the
> latter apparently).

8.2 doc does not explain term overlap. It only says:

"This expression yields true when two time periods (defined by their
endpoints) overlap"

>> How to make overlaps to return correct result?
>
>  select 1 where ('2006-10-30'::date, '9999-12-31'::date) OVERLAPS
>     ('2006-10-16'::DATE, '2006-10-31':: DATE);

In real queries I have column names and parameters instead of data
constants.
The only way it seems to replace OVERLAPS operator with AND, OR, <=
operators.

Is it so ?

Andrus.



pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: Re: Why overlaps is not working
Next
From: "William Leite Araújo"
Date:
Subject: Re: Why overlaps is not working