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.98.2) (envelope-from ) id 1x7XC8-00000000SsM-1Dvx for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2026 11:55:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x7XB8-00000000jbF-09iK for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2026 11:54:54 +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.98.2) (envelope-from ) id 1x7XB7-00000000jb5-2puK for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2026 11:54:53 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x7XB5-000000001TS-0D5F for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2026 11:54:53 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id DE90DEC02BB; Fri, 18 Sep 2026 07:54:49 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Fri, 18 Sep 2026 07:54:49 -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=fm3; t=1789732489; x= 1789818889; bh=mUts0VDolcpve648dHSpWjQG80Op4lLowVanLJu2RZ4=; b=O xLQdzOi5YmZmaCKww1DShIl+PkcpKoye+fMQM75PH8hexwuBITGpxX/o50gVS6xA hFRSHoinlJ5JtRRWy/4M7/X72aHeoXosIgxnivztEnxewGVxKYzcQ1gASeWGLgGF zwm2V7Roy0dPDTJ+lzYKuwwkf+GyDsW0s2t0WvfsykPUWxIUOXC9iV5xkunMyx4W gloeSIiDmDX0zgz5HNzMmldTOe5KAcK+rYEiasmdx/APCSzV3A+sRMCAi3wBjbqC 9hxIoBXYdAHbP5MDqzR5kITCK4u43LbuEqQpdYHVJXchCbGEodxzuLwb5JQHkouv DUcRyZW8Ya8rnvECxJgzg== 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=fm1; t=1789732489; x=1789818889; bh=m Uts0VDolcpve648dHSpWjQG80Op4lLowVanLJu2RZ4=; b=oJONR2+Edub84x8Z9 s3KSHRSeJf1nw5uk3FCgkExmeHxYP7+fJkPkKGSDk+njFT1XGRMVOnHMG04rwjHy 3UN5Ha8AQZI22rYobGnQldGFiIfE/OzMkJV6D4TlEnY/PHEDbcI3QW8JPFs512+f vwsueLc+LBv4pwunI9lRCHN0Rhcywu5zX+mc9p5UuZzMvSeDRvNfZjUo08ZE9uvE WO96lc+hF3fMJ18iW4VeYeuTvi6gvNavktqEWPkTLkCq91vZLod+ut21Kjs6LrpB 0aVEu6WQGy93s/Da0eZe2+PyvEeL8a8cWQ0TDMFrxY03ZpLQZIhp3bpTbDJjCsoN ACYEw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEL4185fC7pdYr3999qPDY1sRSYBWxIE1AxIoUoJ2o3HvEDHG4gUZOPHkancjUlxO ouZERBLPVxQtlR8UF7Cy6SuEacGbEMbYU2uN6Ayvv9yq67AySqZVFOhOvNy4F+n8uTWiXO 4cnzSoVdYqvWYZHl2bU2eXTZnKXnTJ0khRqCl2vf6e33W+o45NryeT+O8R26vm28J+cu5Q cb5hZjcKn6YYc1WZg9VujKinY2boEAYyGcxEqPfzRMTcF6jbAN+fVHDX1FnrtqQdapVSfn nZmk4lAsktrK/U1518zKEhwR2nz24dxdQLIPau8GEa0tcE/QLHK2mF35Ns9rnblzIDlGoY OlivX7O/rcWCa0QJ0v9MLG/I4rxk0k6W+qQO39y1TprEkgjRn05TpvHY+zYKzZOOXRqq/r VnsEI7tj9k+c+++G+071HUb8b0lB9LYrk66tEnu8n9Hfq9uM0DaVJR7grp8YuA9PLzFGk7 s2pSLpzT9gBkpTbQ/NEny0wpla+2cyWmOUt0NtXD3oQ0IK0snaf1cjDfAFbIreYjPbWKth GKEHpcJFjnJ1zzWcM/CJTewxoWkOTV76m+K0iHohtUJnPkCeP0de+4oBszzbtJgCFRE7Ye DDRT8y9OyjVe5cIiColnoqRF5/LOsL6uLMnHaPkiph7QXQtqhugfP/TWuWmw X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Sep 2026 07:54:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1789732486; bh=+pUsrYZiqcX9S+DLniemdSvlz4mKryPGWWZvjOQkDis=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=d6q1/LAa62amSFtsAreT7ZXbIDiXQ1GRO4rMJdT4gLEtqoMJJ87oPZjLqoC0eOBU6 go67K9SkG2yqUWr3wNpech+OAfwIxIVPMVClJnI4O6XmpTwx6suSx5mb0aB6PVTN2q 07cYvmNlPvevkaICDFmeG1LkeekbJSrfTQ4oj/MR1EZtVd3EN+C+UR+5lvbdL42c+x b1LLQb4F6xwiD1huLmMeMAO98JO3+3vpWdSxb2iKfrRnELkSWPXAXtrVPldA0Zgrwb puXNwDSf1VBdy7zNUhk5VPLseJm9iqmqGzvXS9MZikKYubprP9OheidZzrr1gDjNfD 81P4KsLqj2CRg== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 511F3B0008E; Fri, 18 Sep 2026 13:54:46 +0200 (CEST) Date: Fri, 18 Sep 2026 13:54:46 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: Mihail Nikalayeu , Michael Paquier , Zsolt Parragi , pgsql-hackers@lists.postgresql.org Subject: Re: Routed ON CONFLICT inserts broken by partition-local deferrable unique constraints in 19 and master Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Sep-16, Dmitry Dolgov wrote: > + /* number of key attributes must match */ > + if (indexForm1->indnkeyatts != indexForm2->indnkeyatts) > + return false; > > I see that it was like this in the original commit, but isn't it too > restrictive regarding the goal stated in the function comment? If say > there are two unique indexes on columns (a), and (a, b), they have the > same understanding of what tuples will conflict, but the latter one will > not be used as an arbiter index. To be fair, I don't see how this may > become problem in practice, but still. I'm not sure I understand this concern. Do you want to elaborate? This functionality is there to support having two copies of "the same" index during REINDEX CONCURRENTLY, and of course the second copy is going to be identical in definition to the first one. Maybe you want to propose a different name or a different comment for this new function? -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/