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 1r65hn-00H7jI-Mn for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Nov 2023 09:09:03 +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 1r65hj-00Gqgo-Sk for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Nov 2023 09:08:59 +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 1r65hj-00Gqgg-IU for pgsql-hackers@lists.postgresql.org; Thu, 23 Nov 2023 09:08:59 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r65hg-006x2W-TD for pgsql-hackers@lists.postgresql.org; Thu, 23 Nov 2023 09:08:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 55DCB5C020D; Thu, 23 Nov 2023 04:08:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 23 Nov 2023 04:08:56 -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:sender:subject:subject:to:to; s=fm3; t=1700730536; x=1700816936; bh=5GP9oQGqTc2IRCAtQlpi7jHL4 FyvS1+Pl0quMRW/494=; b=bbnn4X+Jsu9Li32lMureNkvV9e7XPgXbOSrH9sgev lDBKDUk+0ibrIdKbF4cmWFcv8a5WecnDvjJwC8JJIt2H3znRxxn9hJ/uMLmA4xSt lbIY8NOJGwlbZzrTJOhDcTKXN4lxV2t/zftuxs+yMuqJyDgLDGe27nPTogia6BFX GirRGg7Rv9Bays1rvUeGvPsFkaiGMX1iqy+C+YeQK6OSKLzBuKVEEVj7enDYSC79 igKplxaVMS/vvuhjqXwEUsb6Bxs3WUPxhSxATsVNxrQYTvttIM3n3GbIWcDJ2ZjS 0mRzx/+gMtfym1A+sPM6YveaC4qN1dmllxxHrD3ke191g== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700730536; x=1700816936; bh=5GP9oQGqTc2IRCAtQlpi7jHL4FyvS1+Pl0q uMRW/494=; b=yBGITafbOnZNtjnDXr4uaG1p1JUMl412k2V+vOb71HK8dACiLg7 f+fpNta5VPCl/sIFjNZ4JjwPzzRJsaECDtEd/hPQsuPxi1AO4q5YkIKGARPi6O7z X/2N+P9RJU0WlJ3ciSbHi3blNZ9JsNfV4+QllX1h5ihnsBiJZoDye0F87EVX4huj nd61x8uKiGdh7m4otka4V/o42jwatIylgyVL8Ug/dXXqLNR6xW5QAhH8pFhbfiNV xx8XF2UoyMOpDurgkNBABuu1AQW46HbQzF0rWoF2Et/uvSHACDmWZIiuOwQRHZzc QcMceSFZH1CIZj3kgzDox+HNiBMukV3g6mQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehfecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuhffvvehfjggtgfesthekredttddvjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeejgedvgffgfffguddtheegvefhgeeulefgleetteevtedvveet ledvfefhveefgfenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghi shgvnhhtrhgruhhtrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Nov 2023 04:08:55 -0500 (EST) Message-ID: <596fefdd-6202-4228-b7c6-f240b1cbe06e@eisentraut.org> Date: Thu, 23 Nov 2023 10:08:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: SQL:2011 application time Content-Language: en-US From: Peter Eisentraut To: Paul Jungwirth , jian he Cc: PostgreSQL Hackers References: <5157e85a-6007-27a7-853a-5601d9c3722f@illuminatedcomputing.com> <5a16a59a-d497-7d72-07aa-0afc09d5193a@illuminatedcomputing.com> <2d9740ad-3bb7-473c-8441-344351caa8ee@illuminatedcomputing.com> 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 20.11.23 08:58, Peter Eisentraut wrote: > On 17.11.23 19:39, Paul Jungwirth wrote: >> But I feel the overall approach is wrong: originally I used hardcoded >> "=" and "&&" operators, and you asked me to look them up by strategy >> number instead. But that leads to trouble with core gist types vs >> btree_gist types. The core gist opclasses use RT*StrategyNumbers, but >> btree_gist creates opclasses with BT*StrategyNumbers. > > Ouch. > > That also provides the answer to my question #2 here: > https://www.postgresql.org/message-id/6f010a6e-8e20-658b-dc05-dc9033a694da%40eisentraut.org > > I don't have a good idea about this right now.  Could we just change > btree_gist perhaps?  Do we need a new API for this somewhere? After further thought, I think the right solution is to change btree_gist (and probably also btree_gin) to use the common RT* strategy numbers. The strategy numbers are the right interface to determine the semantics of index AM operators. It's just that until now, nothing external has needed this information from gist indexes (unlike btree, hash), so it has been a free-for-all. I don't see an ALTER OPERATOR CLASS command that could be used to implement this. Maybe we could get away with a direct catalog UPDATE. Or we need to make some DDL for this. Alternatively, this could be the time to reconsider moving this into core.