Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbNdj-0004hw-Q6 for pgsql-general@arkaria.postgresql.org; Fri, 15 Oct 2021 13:52:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mbNdf-0001lr-Ne for pgsql-general@arkaria.postgresql.org; Fri, 15 Oct 2021 13:52:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbNdf-0001li-Bh for pgsql-general@lists.postgresql.org; Fri, 15 Oct 2021 13:52:47 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mbNdd-0007Th-8k for pgsql-general@lists.postgresql.org; Fri, 15 Oct 2021 13:52:47 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id r4-20020a4aa2c4000000b002b6f374cac9so3007512ool.6 for ; Fri, 15 Oct 2021 06:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=7WT4DuCQ2kJNBUOYF2Lm1zjNXNMZZzFAwjT6hMWQiB8=; b=Po0ZD4nTJCemmxF6twDornrJBDE+3FTiN4QOrxobmuFrU1sU/etJaMbURuy53TBx4K NRXJ8d+b+xjguITvQLDb9HRftQ3A1oaS0Da3rAt0NR2UjRRnXsRnXgQr6cSYvEtBCuP7 DuuKwoeCE18h5RQoEjICwvOMfCdAslV7XSUS/71OmXbE1r1i7I1yUdm6CdcQpMnexBri haFKuHzAsZ/EuQn+T7s6qPZkozf4gPWbukHXJmvaFzLDwB/Q3nu5Ax3iBKejdW2HUY5A 3K+F1g3KteBaxxAu630Ooo2tIJ4NyNtQxT/QIwNkrKiWT7Rrc9NMdYmXmY/lhQ/KK3N1 BjrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=7WT4DuCQ2kJNBUOYF2Lm1zjNXNMZZzFAwjT6hMWQiB8=; b=vgsoVAIGmCi75ptjVf3+Z2Aa7p1PdgZSH/zMrb9k0qNurdOPLNWqjvpuwK7hjRJ8YY eOV+oBlNh4SspO02AcSoABnpSCpcf+5hGR4W0daEe0f3PbyRPWIyboMzjTHJmyl2fiKh 6kj8w6FRpTru83AwsySQclzdidPE4LfUjIr6LgHHXqrVIM9qr/Jql/dZhRzTdT0NW8MH FS/7bPgB3apQPAGZKSk2JfGruF41KnddKytBoVBrAS9JEO7uhE4trHByRUn+FpawdhFt Fd7TjXApy0YOcPfsa/knq4V3TlxDdv9I+TDqQLCrkPrmaKoY9wInlVMlvrHjLbA5MR6K djoQ== X-Gm-Message-State: AOAM530IvUJEKElSo+iL9/sFqlh3oKR3qZIDDADbZrcsP1kJyoNaIUOA sjbnreBZ6Raamty104orftvwlBBLQKk= X-Google-Smtp-Source: ABdhPJzvzUa3X+lf3zUOoI372r9wxZFEtCG4CHSDrO7MaujZXdBKGDUQALos1Jv9iyKpkZQus3MM9g== X-Received: by 2002:a4a:4006:: with SMTP id n6mr9021223ooa.73.1634305962826; Fri, 15 Oct 2021 06:52:42 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id u21sm1182059oiv.25.2021.10.15.06.52.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Oct 2021 06:52:42 -0700 (PDT) Subject: Re: "two time periods with only an endpoint in common do not overlap" ??? To: pgsql-general@lists.postgresql.org References: <820B633E-90C6-40F0-81A0-CAA074E5762F@yugabyte.com> <2ff5f521-34ab-8690-180a-864441e4f15b@aklaver.com> From: Ron Message-ID: <0782c52d-2a80-b37f-0b9e-1a2a7cfb68c5@gmail.com> Date: Fri, 15 Oct 2021 08:52:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <2ff5f521-34ab-8690-180a-864441e4f15b@aklaver.com> Content-Type: multipart/alternative; boundary="------------A47B0C0F41C8EF6B0C31A6BD" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------A47B0C0F41C8EF6B0C31A6BD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. --------------A47B0C0F41C8EF6B0C31A6BD Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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.
--------------A47B0C0F41C8EF6B0C31A6BD--