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 1lHFCt-0003LU-Jf for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Mar 2021 00:17:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lHFCr-0006t3-AH for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Mar 2021 00:17:37 +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 1lHFCr-0006sv-3a for pgsql-hackers@lists.postgresql.org; Wed, 03 Mar 2021 00:17:37 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHFCk-0002sk-TT for pgsql-hackers@lists.postgresql.org; Wed, 03 Mar 2021 00:17:36 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 3F39C1328; Tue, 2 Mar 2021 19:17:29 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 02 Mar 2021 19:17:29 -0500 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:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=BnZ4Rz4u8B1Mk5dePjybqQtIabtJy8tIaO3YfX2DaIA=; b=RbFWVDNe SYFEPwtDkLHWcuVOjUBoIsSs117CyeQy7EDpZaPgdUYJ9MHVzq70h0+syYqaXt/V /ENlOXeNenO84StoJ4dtgbNxCzgSCfzDGjeQ5fbGUiBKTC68UvLfOyNaXuCv5fDa LIdUBi0mQj2hbXN8iTQ369qa88s2fCqR4Sv8jZHMlA01Q43AP4rpbIksoWMUgidT qAVQ+Ys38NoZNBN8+IlnZ0R7JZMevWb4VzHQf7fYUKyTlc57dOEB3kePjCDSugix HViZ8kx8URRarbG8HdCOy1YW97Gcp5zennCONnKLv3fYu1vUzeqrGpeHZsb5JRC5 3pp4OUWpJ2V4yw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtuddgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjfgesthekredttderudenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepueffhfejieeuueffgedvudekgeeltdeviedvieeufeei ieevgfetheeufeethedvnecukfhppeduledtrdelhedrudelrdelheenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 5BA0824005E; Tue, 2 Mar 2021 19:17:28 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 22BF12A14F6; Tue, 2 Mar 2021 21:17:25 -0300 (-03) Date: Tue, 2 Mar 2021 21:17:25 -0300 From: Alvaro Herrera To: Tomas Vondra Cc: John Naylor , PostgreSQL Hackers Subject: Re: WIP: BRIN multi-range indexes Message-ID: <20210303001725.GA1766@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4e92be8a-446b-1bab-d43d-8bd55e62e96e@enterprisedb.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-Mar-03, Tomas Vondra wrote: > That's kinda my point - I agree the size of the patch is not the primary > concern, but it makes the minmax/inclusion code a bit more complicated > (because they now have to loop over the keys), with very little benefit > (there might be some speedup, but IMO it's rather negligible). Yeah, OK. > Alternatively we could simply remove the code supporting the old API > with "consistent" functions without the additional parameter. But the > idea was to seamlessly support existing opclasses / not breaking them > unnecessarily (I know we don't guarantee that in major upgrades, but as > they may not benefit from this, why break them?). It'd simplify the code > in brin.c a little bit, but the opclasses a bit more complex. Well, I doubt any opclass-support functions exist outside of core. Or am I just outdated and we do know of some? -- Álvaro Herrera Valdivia, Chile "Escucha y olvidarás; ve y recordarás; haz y entenderás" (Confucio)