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.96) (envelope-from ) id 1w5JAt-0037DW-0n for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 08:01:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5JAr-00CtYW-2P for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 08:01:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w5JAq-00CtYN-2s for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 08:01:09 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w5JAo-000000011uF-0YGx for pgsql-hackers@postgresql.org; Wed, 25 Mar 2026 08:01:09 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 90C6D1D00230; Wed, 25 Mar 2026 04:01:03 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 25 Mar 2026 04:01:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm1; t=1774425663; x=1774512063; bh=71Ze7XWCXk hbq5VXynflxKX6L8Dbsemzgq/C6JjRS88=; b=ecTK1icE5Y5k0XeZe5zZcHf7n0 ByMC+kF/CPDCKwyYvoKYXaiQfhvNU/Cb6KWlJQttYxTal3p0oZFJaYyht2lLJ4kh znQK4xOZny02rU/sPmrEbwm7dKwvVrIWhafs+25/Q5CWP7r2VISz06zMbFVOAKPn YN29eWVJ7dV4fIoFVaBUMC1vdn7JXH9eu0SoE4qi8haTUmRofrQcQhPoRFp1JTCQ iC7uspx9GtQ5zF+70gZQJmDU7g8yCc2MnWbY2MBJQXExo8NfXFlmekj4hutH/5Ir KBJ78qVEKwU4xqE55z4leCMYUYs75efumaY+EiT1Gm89zlT4Vs0fSMr6mA3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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= 1774425663; x=1774512063; bh=71Ze7XWCXkhbq5VXynflxKX6L8Dbsemzgq/ C6JjRS88=; b=KQypQCoZcWZlXOFHHuTLgovIVsdFHlTvGAa8HrZriuSxJO3eRYi ApT6cvuDdlEZ+mHMrzE/4LobfYQv+VXeLoomyjkACouj8NCeIqPfPtGzpcf6ITJl Z4npJ2i8xUkwkBMO2Icx9a3lziTxR/xw6umq9QjeYoFXeP/eSyYbb1bxqLNRSjfG XxGANv+vc9+W1wXWpPU5xR6SjMmIPfC87q5+2DNC6eDGMIvJyVjbDXFBKiylzo1Y d5GT+0JlBBS4g+SHaYxewpXQ7iIljwOsmk2gSLRlsWpOwVTFs8KfMCMveGgtPD5j 4D2WCFaIpw1g1ALNhGk1C9yKH0um6vzMz/w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefvdefleefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghlvg hkshgrnhguvghrsehtihhgvghruggrthgrrdgtohhmpdhrtghpthhtohepphhgshhqlhdq hhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepgiegmhhmmh eshigrnhguvgigqdhtvggrmhdrrhhupdhrtghpthhtohepjhhohhhntghnrgihlhhorhhl shesghhmrghilhdrtghomhdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruh hs X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Mar 2026 04:00:09 -0400 (EDT) Date: Wed, 25 Mar 2026 17:00:04 +0900 From: Michael Paquier To: Aleksander Alekseev Cc: PostgreSQL Development , Andrey Borodin , John Naylor , Tom Lane Subject: Re: [PATCH] Simplify SortSupport implementation for macaddr Message-ID: References: <932CBCA0-FF4B-406E-9296-1B8A63C3EB49@yandex-team.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pMz4EgqzcDuo/M/K" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --pMz4EgqzcDuo/M/K Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 09, 2026 at 04:08:06PM +0300, Aleksander Alekseev wrote: >> 1. The assignment ssup->ssup_extra =3D NULL can be removed. The >> SortSupport struct is zeroed before the callback is called (see >> sortsupport.h). There are about 22 similar assignments elsewhere; >> it does not seem to be established practice, many other places have >> no such assignment. >=20 > Agree. I removed this assignment in 0001 and added 0002 that removes > if for the rest of *_sortsupport() functions. Sounds sensible to get rid of the estimation with the Datum size requirement and never give up with the abbreviated key sort, as done in 0001. I'd leave the code touched by 0002 remain as-is. @Tom, why didn't you consider that as a continuation of 6aebedc38497? Just to keep the changes with SIZEOF_DATUM < 8 leaner, or just because it was not worth bothering based on your TODO list? I am wondering if there is a reason I may be missing here. -- Michael --pMz4EgqzcDuo/M/K Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmnDlgQACgkQnvQgOdby QH0MRRAAg0L7gkGXQbCcEM2/yOLpVK4SLOMfVsiD3qf3XdaRbFify3U2NVLdPLG1 Tk/LDs2O88QHD+0CYBd6dDMAVlfOWNBjmk1ZDuP/Y1Bc/Vm0Mghrn+7JSKaXCstI q90N3Xg4t0+V8hnKUm8VtCvdXFUTM/1ip8VtZoa0mB6YjQTrbHTWyvhCKUBbyiDb Hv0OJS76rhX126fBJjBmOkioqdpxQjuJsyOwoqjvzBEi2Cf1wGj1B6wHBfCIx2PA q+Wm/qG1pcNOxFR17Iiogb+3hSj0HY3Pdd3oWjNDwou4x3CjF/SEmupMZoAOlVbL 7qrG+7wiXJzQMZ5LCwm5aRG2gh581VV57Y8zTA/4O3o5Vwfe9/CQdy7Cet9cT6Ds rT39Cjf9tv++9nHsZr8T03JigPV0p4hpJvRQ5hX9JXqkbbzk0192u1ZuHdt7Jq1V BMRdfSF7jBCXkz1EWuLuYEkiJyN/8QG+u8g8DaiYYv7hQkgIOoJ0uk9gs70goUXc GobPRWbLONmtI1MZzGyvC08NdSHhFkMMfs7KJntnMNIFnbsPSd53OJHHEzBhve/2 mcY51fGr+3TvwkHKEUTAXnorebQedVb34qBLunPGYiRnnv0021H1A+dO0ctbnd2R 4afXOxStduMpTt8bjVToZIX8GA+JbPWTBgKZ6XU4eHoyWJaEwAU= =cpPe -----END PGP SIGNATURE----- --pMz4EgqzcDuo/M/K--