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 1wMTNk-0007RZ-2b for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2026 16:21:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wMTNi-001cgH-1i for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2026 16:21:22 +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.96) (envelope-from ) id 1wMTNi-001cg9-0h for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2026 16:21:22 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wMTNf-000000004Ce-3kMU for pgsql-hackers@postgresql.org; Mon, 11 May 2026 16:21:21 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 418F4EC006A; Mon, 11 May 2026 12:21:19 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 11 May 2026 12:21:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1778516479; x= 1778602879; bh=U9puTMU3Ebrgto5vHkQkqdxgWQOYDqcbd/yND+K5BMs=; b=Y fDIfL2cVgfQkB+Y+6frg6Xd59YfyRXawjqpmQbqRTBVJl59XdDYdGG4I5qbsQkSf NiSWKkgPX8b7xxSstVPb1OgW/DYFHmZF1VbKdo92yUknDuojAqGr7b1N0UZiMJUP 4XsQHNbDkJLKh6g1TNEOZkj9uojFV43sM/iYkDRLvAQy8SOjwj2e+SssxYH3Lb4g LQt+06OC5M7W6dfR0P4BKSl9NzVSVVSQo40iSYt5m7swfaFZc5BZbKX8BfToYUzq 5/SeguCoWXpq7O5ylzmNbnA49BpVqHNozZnKXMzTSkf4ieOB6C0yk7185zJPCxxI CogXZp5wg458UhdNbheAQ== 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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1778516479; x=1778602879; bh=U 9puTMU3Ebrgto5vHkQkqdxgWQOYDqcbd/yND+K5BMs=; b=H+Aw8X79bIAp8j6Rd pO+6+bMX4c+C8IkjbUygsAPmiflGSQhmu2b7gc6HH+VVzsK/qxd2ubj82NNP8Da4 AtvgBwf8FhxE/9ZsCl78nCSnSlK78RgHuCIyXv3k6SGmAdx8orfn5I2Xup76luZO OV1uJHjUwfCflRz/VNX8Rys8E9vNGFVROjUvUVMm5JNiGheYb5WGkt7eNWtDFmZC GdWmtnUSZucajnOAw89R+Ez7FxEwezRBHkqADgAJt8cvvrHxO7tSlKN0swqahiJ1 VlRVhJPBAEuwDaB5aciStGlYcQutgVKDUXKbi9ECgbwCPzCpO/UwZojzM4835P+E 698uQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduudelfeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehlihdrvghvrghnrdgthhgrohesghhmrghilhdrtghomhdprhgt phhtthhopehrvghshhhkvghkihhrihhllhesghhmrghilhdrtghomhdprhgtphhtthhope hpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 May 2026 12:21:18 -0400 (EDT) Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 0C9ABB05EF9; Mon, 11 May 2026 18:21:17 +0200 (CEST) Date: Mon, 11 May 2026 18:21:17 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Chao Li Cc: Kirill Reshke , PostgreSQL-development Subject: Re: Fix REPACK with WITHOUT OVERLAPS replica identity indexes Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7DC152EA-F549-43D1-80ED-4ED2BB6F801E@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-May-11, Chao Li wrote: > > On May 10, 2026, at 06:38, Álvaro Herrera wrote: > > I think it would be a good idea to make identity_key_equal() not deform > > all attributes, but instead only up to the last one it needs for the key > > comparisons. > > That’s true. Please see v3. Thanks. I did one further small change, namely to determine these last attnums just once per run rather than once per tuple. Pushed now. Thanks for testing! -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/