pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: "two time periods with only an endpoint in common do not overlap" ???
Date: Thu, 14 Oct 2021 19:54:54 -0400
Message-ID: <911807.1634255694@sss.pgh.pa.us> (raw)
In-Reply-To: <820B633E-90C6-40F0-81A0-CAA074E5762F@yugabyte.com>
References: <820B633E-90C6-40F0-81A0-CAA074E5762F@yugabyte.com>

Bryn Llewellyn <bryn@yugabyte.com> writes:
> I tried this obvious test (using Version 13.4):

> with c as (
>   select
>     '2000-01-15'::timestamp as start_1,
>     '2000-02-15'::timestamp as start_2,
>     '2000-03-15'::timestamp as common_endpoint)
> select (
>   (start_1, common_endpoint) overlaps
>   (start_2, common_endpoint)
> )::text
> from c;

> The result is "true". Seems to me that the doc is therefore wrong

Huh?  Those intervals have lots of points in common, not only a
single point.  The documentation is referring to a case like your
second example.

			regards, tom lane





view thread (24+ messages)  latest in thread

Message-ID: <911807.1634255694@sss.pgh.pa.us>
Permalink:  ../911807.1634255694@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/911807.1634255694@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bryn@yugabyte.com
  Subject: Re: "two time periods with only an endpoint in common do not overlap" ???
  In-Reply-To: <911807.1634255694@sss.pgh.pa.us>
  References: <820B633E-90C6-40F0-81A0-CAA074E5762F@yugabyte.com> <911807.1634255694@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox