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 1nFZkx-000296-9N for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Feb 2022 10:54:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nFZkw-0004sw-5h for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Feb 2022 10:54:26 +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 1nFZkv-0004sn-7a for pgsql-hackers@lists.postgresql.org; Thu, 03 Feb 2022 10:54:25 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFZkm-0000mw-G0 for pgsql-hackers@postgresql.org; Thu, 03 Feb 2022 10:54:24 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 04DDF5C019F; Thu, 3 Feb 2022 05:54:14 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 03 Feb 2022 05:54:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=s5KmywSXvhnvetqkTINIYy6GQ/pOXKlALds7t+vqC Js=; b=SPzQTQxMDiN9FtDN1TtuC86975aZa6GcN8RQucuMYDbYl/TVs+mR4haLk kknMYTbcmj4tHBQe27VIPG8dLWM5SkgVvXUvJP0tyZ8kreoFbwMxgvOsUeEe+M+E qB74zulHdxpvKZoN3iDipGQE8ZbleGaqSTKS2zMNXbTjr8WVbVVJqho3oyn2r5yO FttZbKpzhp0AWv3im5FCXTZfpwefHCqjdDyJQNzcBoUS+5s039D/xUx/ieIZtgzM WWE9B+G6bRTkiV41nJNxZyY84fAFqv96Ec+aMniqljoZ9ULU9/XfpM2JocOBBrhz EIT/iRdvk7BODVNPALov7/sjweBBw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeejgddvtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeelgfetfeeitdelleeggeej vefhueetfedvtdejheevueeifeegvdfhueeludetueenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Feb 2022 05:54:12 -0500 (EST) Message-ID: <12facb9f-541b-5a5c-040e-a5ca3c1dd4a3@enterprisedb.com> Date: Thu, 3 Feb 2022 11:54:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: UNIQUE null treatment option Content-Language: en-US To: Pavel Borisov Cc: Peter Geoghegan , pgsql-hackers References: <84e5ee1b-387e-9a54-c326-9082674bde78@enterprisedb.com> <87d6b906-d1cb-75c1-7f90-24b17c724369@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 28.01.22 13:56, Pavel Borisov wrote: > Makes sense.  Here is an updated patch with this change. > > I didn't end up renaming anynullkeys.  I came up with names like > "anyalwaysdistinctkeys", but in the end that felt too abstract, and > moreover, it would require rewriting a bunch of code comments that > refer > to null values in this context.  Since as you wrote, anynullkeys is > just > a local concern between two functions, this slight inaccuracy is > perhaps > better than some highly general but unclear terminology. > > Agree with that. With the comment it is clear how it works. > > I've looked at the patch v3. It seems good enough for me. CFbot tests > have also come green. > Suggest it is RFC now. Committed. Thanks.