Re: "two time periods with only an endpoint in common do not overlap" ???

Поиск
Список
Период
Сортировка
От Ron
Тема Re: "two time periods with only an endpoint in common do not overlap" ???
Дата
Msg-id 0782c52d-2a80-b37f-0b9e-1a2a7cfb68c5@gmail.com
обсуждение исходный текст
Ответ на Re: "two time periods with only an endpoint in common do not overlap" ???  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: "two time periods with only an endpoint in common do not overlap" ???  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: "two time periods with only an endpoint in common do not overlap" ???  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 10/14/21 7:02 PM, Adrian Klaver wrote:
[snip]
or the third example in the docs:

SELECT (DATE '2001-02-16', DATE '2001-12-21') OVERLAPS
       (DATE '2001-10-30', DATE '2002-10-30');
Result: true
SELECT (DATE '2001-02-16', INTERVAL '100 days') OVERLAPS
       (DATE '2001-10-30', DATE '2002-10-30');
Result: false
SELECT (DATE '2001-10-29', DATE '2001-10-30') OVERLAPS
       (DATE '2001-10-30', DATE '2001-10-31');
Result: false

Why don't they overlap, given that they share a common date?

--
Angular momentum makes the world go 'round.

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: PostgreSQL 14: pg_dump / pg_restore error: could not write to the communication channel: Broken pipe
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: "two time periods with only an endpoint in common do not overlap" ???