From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Ron <ronljohnsonjr(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: "two time periods with only an endpoint in common do not overlap" ??? |
Date: | 2021-10-16 16:24:44 |
Message-ID: | 4ad064ba-1650-cefd-2c44-db909937f90a@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 10/15/21 21:54, Ron wrote:
>>
>>
>> There is no straight time range, you would have to use tsrange or
>> tstzrange. The principle still holds though you can make ranges
>> overlap or not depending on '[)' or '[]'.
>
> OP refers to the OVERLAP operator (is it an operator), not the tsrange()
> function.
>
Your statement was:
"The numeric ranges 0-10 and 10-19 overlap, just as the time ranges
00:01:00-00:00:02:00 overlaps 00:02:00-00:03:00."
I was just pointing out that is not necessarily true. As was pointed out
upstream there are good reasons for not having 1:00-2:00 and 2:00-3:00
overlap.
As David pointed out it is about following the documented behavior. I
still have to remember, on occasion, that BETWEEN actually includes the
end points not just points in between them.
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2021-10-17 02:30:08 | Re: Wrong sorting on docker image |
Previous Message | Tom Lane | 2021-10-16 15:42:02 | Re: Wrong sorting on docker image |