Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tpVPJ-006kEw-Q5 for pgsql-committers@arkaria.postgresql.org; Tue, 04 Mar 2025 16:46:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tpVPI-002GJJ-Bo for pgsql-committers@arkaria.postgresql.org; Tue, 04 Mar 2025 16:46:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tpVPH-002GJ9-CE for pgsql-committers@lists.postgresql.org; Tue, 04 Mar 2025 16:46:12 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tpVPB-000wVR-34 for pgsql-committers@lists.postgresql.org; Tue, 04 Mar 2025 16:46:10 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id B7988254017F; Tue, 4 Mar 2025 11:46:04 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Tue, 04 Mar 2025 11:46:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1741106764; x=1741193164; bh=HfzsL5L3wkmdXHVY1KtqZhOtfDJy6uFq avsS5RBkHDE=; b=QipvfxADmOylE5idqeKstfrzl70Ip123nbDcIqtepaPSzi+B CpGqNRBXjebhK44kny5GXQv+ZzS4FOCR9PiptOnLkVf0UWr9JPVZ7/A7jNB1MR+P 73N2U+wIILF3FvvNjBZqU1v9+EG0zTGn2vB0LkJRMOaDNBIcfQ0dwdwzAaKHIZBZ uh5Hjw3WL6MbDIpkQ+yM6m2Vqda1rjfp916EHasGYCVufJmK+D+9KU0WWA5iART8 TQPGkPt1clbEHDqMeYwR7WQ84VzWzKuK5UFNK/4LoxYad5ZYjZ2c5WOXe2usVHeB Y/nIMHjO7L71mzxNFc6SG1hGey8PUSbT3ZjywQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741106764; x= 1741193164; bh=HfzsL5L3wkmdXHVY1KtqZhOtfDJy6uFqavsS5RBkHDE=; b=W oLryJ9e4CUluPCiLqDsetFX0Kbvw/O2zBP7MpoF01VlGQSZUIM2ia/BEQalx9y4M YEGU+cyw52kg0NvbHwyow7y6LB9INjCUSmkrY9531kehmW4U6TQjqYXKuW53kqP/ Zjx+gJPw89SDNt4Ut8urRgGLZdDcqWtnsIQABNHjNWlkMrXDQyhoMw69VUhWkc5K nbzWYsEJqGhkCM6apMvCBuNnrtjBV/kU6tDby/CJ+oTW22YHEbeimF/NSsrIUa0K N7gZ2L8ZF71PzGECNjdJFEHb5Li/OnNqfxVgBKr/56w+Th3KTcGx+IyvJMuh/XU4 bpxb2jZkzfKefS2iix+AA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutddvheehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddt vdejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvih hsvghnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepjefhveehtdetgfffhffh feefgffghffflefgieeuueekhedvhedvfeehffdvfeeunecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhht rdhorhhgpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopehmrghrkhdrughilhhgvghrsegvnhhtvghrphhrihhsvggusgdrtghomhdprhgtphht thhopehpghhsqhhlqdgtohhmmhhithhtvghrsheslhhishhtshdrphhoshhtghhrvghsqh hlrdhorhhgpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Mar 2025 11:46:02 -0500 (EST) Message-ID: <1789fe14-c19d-4025-9201-0eb8faa0840b@eisentraut.org> Date: Tue, 4 Mar 2025 17:46:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Generalize hash and ordering support in amapi To: Mark Dilger Cc: pgsql-committers@lists.postgresql.org, Tom Lane References: <2557074.1740673653@sss.pgh.pa.us> Content-Language: en-US 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 27.02.25 23:17, Mark Dilger wrote: > The logic in equality_ops_are_compatible() was trusting that equality > operators found in an opfamily for btree or hash were ok, but not > trusting operators found in opfamilies of other AMs.  Now, after the > patch, other AMs can be marked as suitable.  That's really the core of > what the flag means:  "Can the system trust that equality operators > found in opfamilies of the AM are well-behaved", or something like > that. Yeah, what might be a good English identifier for that? > I also object strongly to the fact that the comments for > equality_ops_are_compatible and comparison_ops_are_compatible > were not modified: > >  * This is trivially true if they are the same operator.  Otherwise, >  * we look to see if they can be found in the same btree or hash > opfamily. > >  * This is trivially true if they are the same operator.  Otherwise, >  * we look to see if they can be found in the same btree opfamily. > > I agree these comments need updating. Mark, can you suggest updated wording for those?