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 1mbbhJ-0001oI-V0 for pgsql-general@arkaria.postgresql.org; Sat, 16 Oct 2021 04:53:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mbbgl-0001Lr-4w for pgsql-general@arkaria.postgresql.org; Sat, 16 Oct 2021 04:52:55 +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 1mbbgk-0001Lh-PQ for pgsql-general@lists.postgresql.org; Sat, 16 Oct 2021 04:52:54 +0000 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mbbgi-00026u-Ku for pgsql-general@lists.postgresql.org; Sat, 16 Oct 2021 04:52:54 +0000 Received: by mail-oi1-x22f.google.com with SMTP id t4so16088408oie.5 for ; Fri, 15 Oct 2021 21:52:52 -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=4plA0Ym6whrw0HAliv9Km/XPCF3AgWfzGOxeYikGU5w=; b=JS51RLiYmcTTEKFEGzP0bFzxOuUiGD5YM3w5uBTS7AgT3hnKWt8Q6xLehKIRY27Kmr eBZAkJL3N7/ddTuZ5mkycqkojIoQ9VrOnaKEMBO8A1f4MtIy5kgIKCAeBRW9mTP6hO+u GpE+T3NAz/GCDB0Ut2+BpRbZOk9dLUx22+KitRQD/1FuAD/6KGpQkNq1O3CXkcii7yF9 7fCxuuuk7Gi4eIkoz4/7t26sbo5+z6RnicNmjt9XXjIviXQr1kuv27x5KY1jrOmYwUOQ UiSFD3sVHnPeKerS3qtUq7ZaCvZJ1JZnfL0GWjx8j+xaSewAYIXq1wjHyMWbz1M0AxN8 MZUg== 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=4plA0Ym6whrw0HAliv9Km/XPCF3AgWfzGOxeYikGU5w=; b=xjDi5RTtioQwJjvnrUVq28A1IVjE2Ojj9e8iCbmvyn7AwhyNhIU3I6nwrJS+oxeEbK pIhOTUUNDrWOh7YbUDTK4e0cxRfQTPeyrp9X0B7jLeWxgTQLmMNy1bNIckJ6Ec1lSMyk RZd11ISWS7k66lyuK1ehRTrJmFSjjL/f94aWspzYh0V+i5I9hAM1ccXzNFwYUI9OZlMR ebnneKKr8WrRhpsGQUPPw6m4OlaAClKDW/5IL3d4DBvtPV2namOzyZoiFRHxIhNSuJ62 gcRPT9SBoQZWk09P8Xm6DpBcuGGNpMGLycct8C0pioIuevwDt48YvMq4PYJzwgTRf19f XjdA== X-Gm-Message-State: AOAM533mpQ7Ve41LONIyf/VI0RSRWzwxnhTbVsRec1O9aEPYvA4BEmea JT8As4DUZBKX9tQ7d7aYuNY8MNzMG5g= X-Google-Smtp-Source: ABdhPJyNNPyVmDphzyaA97OR0jU0KcWiu/1NKTHg6GdvtCgOAlPzSc/PnxJfoZEnpLts+DKUR1lDvw== X-Received: by 2002:a54:4381:: with SMTP id u1mr11400622oiv.49.1634359970122; Fri, 15 Oct 2021 21:52:50 -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 k3sm1650183otn.16.2021.10.15.21.52.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Oct 2021 21:52:49 -0700 (PDT) Subject: Re: "two time periods with only an endpoint in common do not overlap" ??? To: "pgsql-generallists.postgresql.org" References: <820B633E-90C6-40F0-81A0-CAA074E5762F@yugabyte.com> <2ff5f521-34ab-8690-180a-864441e4f15b@aklaver.com> <0782c52d-2a80-b37f-0b9e-1a2a7cfb68c5@gmail.com> <98ea7ea3-38ac-d145-e668-803e5ea14de7@aklaver.com> <6f61f1d3-c110-e6dd-d742-1bb45fb6e90e@gmail.com> From: Ron Message-ID: Date: Fri, 15 Oct 2021 23:52:48 -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: Content-Type: multipart/alternative; boundary="------------9D2112B88AF467DDDBC90B3D" 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. --------------9D2112B88AF467DDDBC90B3D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 10/15/21 11:35 PM, David G. Johnston wrote: > On Friday, October 15, 2021, Ron > wrote: > > > 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. > > *It's the programmer's responsibility* to say what s/he really means, > not for "the system" to make that choice. > > > The system has canonical representation for discrete element range.  The > upper bound is exclusive, the lower bound is inclusive.  All the docs are > doing is stating the obvious consequence of that rule. > > The “numeric range 0-10” is under specified and thus, as written, one must > abide by the rule, implying [).  The programmer is free to fully specify > their range to have the upper bound inclusive, but canonicalization would > then just change it to be “0-11” with the [) implied. Prima facie, if you were told "numbers in the range 0-10", would you really think, "ah, they *really* mean 0 through 9"? -- Angular momentum makes the world go 'round. --------------9D2112B88AF467DDDBC90B3D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 10/15/21 11:35 PM, David G. Johnston wrote:
On Friday, October 15, 2021, Ron <ronljohnsonjr@gmail.com> wrote:

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.

It's the programmer's responsibility to say what s/he really means, not for "the system" to make that choice.

The system has canonical representation for discrete element range.  The upper bound is exclusive, the lower bound is inclusive.  All the docs are doing is stating the obvious consequence of that rule.

The “numeric range 0-10” is under specified and thus, as written, one must abide by the rule, implying [).  The programmer is free to fully specify their range to have the upper bound inclusive, but canonicalization would then just change it to be “0-11” with the [) implied.

Prima facie, if you were told "numbers in the range 0-10", would you really think, "ah, they really mean 0 through 9"?

--
Angular momentum makes the world go 'round.
--------------9D2112B88AF467DDDBC90B3D--