Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fnO57-0003U2-EH for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Aug 2018 13:00:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fnO54-0005Az-HK for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Aug 2018 13:00:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fnO54-0005As-AC for pgsql-hackers@lists.postgresql.org; Wed, 08 Aug 2018 13:00:50 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fnO4w-0007yE-Ln for pgsql-hackers@postgresql.org; Wed, 08 Aug 2018 13:00:49 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1fnO4u-00043X-MQ; Wed, 08 Aug 2018 09:00:40 -0400 Date: Wed, 8 Aug 2018 09:00:40 -0400 From: Bruce Momjian To: KES Cc: PostgreSQL-development Subject: Re: Typo in doc or wrong EXCLUDE implementation Message-ID: <20180808130040.GA2611@momjian.us> References: <153121527691.1408.5686988620817799073@wrigleys.postgresql.org> <20180807173659.GD7297@momjian.us> <31616681533725753@sas1-d856b3d759c7.qloud-c.yandex.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31616681533725753@sas1-d856b3d759c7.qloud-c.yandex.net> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Aug 8, 2018 at 01:55:53PM +0300, KES wrote: > I do not know many internals and maybe wrong. > > But from my point of view with my current knowledge. > If such exclusion constraint would be marked as UNIQUE we can use it for FK while implementing temporal/bi-temporal tables. > > And this will be simplify relationing while implementing them. Yes, it would work, but doing that only for equality would be surprising to many people because exclusion constraints are more general than equality comparisons. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +