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 1kUtHX-0003QZ-FF for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Oct 2020 15:10:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kUtHW-0005DE-8G for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Oct 2020 15:10:34 +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 1kUtHW-0005CC-10 for pgsql-hackers@lists.postgresql.org; Tue, 20 Oct 2020 15:10:34 +0000 Received: from forward2-smtp.messagingengine.com ([66.111.4.226]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kUtHS-0002Rn-Jd for pgsql-hackers@postgresql.org; Tue, 20 Oct 2020 15:10:33 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 9780E1941174; Tue, 20 Oct 2020 11:10:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 20 Oct 2020 11:10:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=I2WjKbhrH8cGzZzqSF4qLc+A16wuD2XIfRLrD7u/i c4=; b=jgvTOV51d+M2m5LBKSzmmrLpmw+70s0ZqRSq+qVwyyAckBmEEujV95xS2 0MxjFpIl3/2JIckbSoCF3C/Aa8AvorE/VuQ/W8fN/GPDClubRPDlOtdPq2uqYys/ BGhV0Y/XUqlVgHKpmXisGDa4nGKFDjjnQwxUMEbawQRHCcjCs/U7cwLRgzuJxRt/ ys1JU0EiK2bLB02ZXTgXmeYVn5ZLGp9UC7hk6nbYZEb21cGYKGi8tc/IYgYR/C5V +Shqb8GdvIXU75K1iIDbt1jZkXZF5Av4+nqVtSjusStBpFAUS5qDCoJaqT/PjX64 wazhjGlCxLsYpRf0s3S/cKtXmtEdA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrjeefgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqh hurggurhgrnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpedtveeghedtjedvvedvleej ueevjeejtdellefgkeelfeeikeejlefgkedtudeuvdenucffohhmrghinhepvdhnughquh grughrrghnthdrtghomhenucfkphepleefrddvtddvrddvhedvrdeljeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvg hnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5dcafc61.dip0.t-ipconnect.de [93.202.252.97]) by mail.messagingengine.com (Postfix) with ESMTPA id A961D328006D; Tue, 20 Oct 2020 11:10:26 -0400 (EDT) Subject: Re: Hash support for row types To: Andres Freund References: <38eccd35-4e2d-6767-1b3c-dada1eac3124@2ndquadrant.com> <20201019233234.r6lyxbvdg5s77rvd@alap3.anarazel.de> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 20 Oct 2020 17:10:24 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20201019233234.r6lyxbvdg5s77rvd@alap3.anarazel.de> 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: Precedence: bulk On 2020-10-20 01:32, Andres Freund wrote: > How does this deal with row types with a field that doesn't have a hash > function? Erroring out at runtime could cause queries that used to > succeed, e.g. because all fields have btree ops, to fail, if we just have > a generic unconditionally present hash opclass? Is that an OK > "regression"? Good point. There is actually code in the type cache that is supposed to handle that, so I'll need to adjust that. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services