Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ix4Kf-00040C-De for pgsql-general@arkaria.postgresql.org; Thu, 30 Jan 2020 07:33:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ix4Ke-0005Md-6p for pgsql-general@arkaria.postgresql.org; Thu, 30 Jan 2020 07:33:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ix4Kd-0005MW-QS for pgsql-general@lists.postgresql.org; Thu, 30 Jan 2020 07:33:43 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ix4KW-0003ik-39 for pgsql-general@lists.postgresql.org; Thu, 30 Jan 2020 07:33:42 +0000 Received: from hercules.internal.net (hercules.internal.net [10.9.200.8]) by hermes.gatewaynet.com (8.15.2/8.15.2/Debian-8) with ESMTP id 00U7XXhB031151 for ; Thu, 30 Jan 2020 09:33:33 +0200 Received: from [10.9.251.4] (dcmchgw.internal.net [10.9.0.1]) by hercules.internal.net (Postfix) with ESMTPS id CACD11350B5F for ; Thu, 30 Jan 2020 09:33:32 +0200 (EET) Subject: Re: Exclude constraint on ranges : commutative containment : allow only complete containment To: pgsql-general@lists.postgresql.org References: <3b555944-1563-6614-a5d5-e0cc001aecdb@matrix.gatewaynet.com> From: Achilleas Mantzios Message-ID: <4c091fe8-8cc5-c0f9-8a17-cc50e74683a7@matrix.gatewaynet.com> Date: Thu, 30 Jan 2020 09:33:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.101.4 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 29/1/20 8:43 μ.μ., Michael Lewis wrote: > If the new value does not overlap with any existing, allow. If it does > overlap, then it must be fully contained by the existing element, or > the existing element must be fully contained by it. Else, reject. Is > that right? Exactly.