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 1mIdvB-0004jE-8V for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Aug 2021 21:25:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mIdv9-00076k-Qa for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Aug 2021 21:25:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIdv8-00076c-WC for pgsql-bugs@lists.postgresql.org; Tue, 24 Aug 2021 21:25:23 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIdv1-00041o-CC for pgsql-bugs@lists.postgresql.org; Tue, 24 Aug 2021 21:25:21 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id C59893200A06; Tue, 24 Aug 2021 17:25:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 24 Aug 2021 17:25:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=Lyde8Gov3zPYPcfo7+VQxxOKX4S08ywdm1iJU5elw zI=; b=KzR1Lt/mrxB54ckykByXDw6HhbLvp/tu30e95jGe4cENqKWX1im4VYNch U1bmhWaYyIENYLRfIVlvtut70oEcjhgv/m5lCEUi8/1KEd8xf7Pd5vx6EIT+6F// gb7XtTzWoZx7t8p4B3HYQ5s1PkNSSdGAKP5UCI26yN8icYDkFt5InEzrWhssp7SX Hl4TnVSKBGjapziZAMQmgTh7mWRlJkYCDEz0rPEx1HLlHqGwJFlJkUjz8SY6dACx gAojz28dI0INGmS8+IDTk2VCym4BGwaFM0fX+Sg06UXtfDUS9pLEJOcRYZZFiRn/ COVYVlGOXyaKsR6inhErZAIAi/Ksg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddtjedgudeiudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ejredttdefjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgv rhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomheqnecuggftrf grthhtvghrnhepleevheehueeiudeiteeitdekueetleefteejffeiffdugedvffdvffdt iedvueeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epphgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 24 Aug 2021 17:25:10 -0400 (EDT) Subject: Re: BUG #17158: Distinct ROW fails with Postgres 14 To: David Rowley , sait.nisanci@microsoft.com, PostgreSQL mailing lists References: <17158-8a2ba823982537a4@postgresql.org> From: Peter Eisentraut Message-ID: Date: Tue, 24 Aug 2021 23:25:09 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 24.08.21 11:55, David Rowley wrote: > If it's going to be a problem detecting the lack of hashability during > planning then maybe we can just add a hash opclass for BIT to fix this > particular case. The following types have btree opclasses but not hash opclasses: money bit bit varying tsvector tsquery Also among contrib: cube ltree seg We could fix the first three relatively easily (although money is used in test cases as not having a hash opclass). Not sure what to do about the rest.