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 1u7ZjD-001vqN-Jf for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Apr 2025 13:01:28 +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 1u7ZjA-006HJ7-O3 for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Apr 2025 13:01:25 +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 1u7Zj9-006HIu-TJ for pgsql-bugs@lists.postgresql.org; Wed, 23 Apr 2025 13:01:25 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u7Zj8-001XKk-14 for pgsql-bugs@postgresql.org; Wed, 23 Apr 2025 13:01:23 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.stl.internal (Postfix) with ESMTP id DF29D2540184; Wed, 23 Apr 2025 09:01:18 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Wed, 23 Apr 2025 09:01:18 -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=1745413278; x= 1745499678; bh=eFGbZxUap6jnv0IT9tf99KB1Hw8wcvWst37z5DXX+80=; b=V gwrhzPJmqvFuK+SJp+Zh/j08GWNgPBOuoPFHKLKexjJ2lqmdZdZ7uIIPlfpOU0rb jmWfLMzZXRQ2bXR9m6zwFZ1G9lTE8MtG7z56s0yFyhuEexM3X5IilVTUqSnIfj20 aLtwtjQMNw4/OuJ8vQHG28ZMrNtZxwEyStzTlZBtFMQAJBQy5bhZ62IuqWdqvOdO D4DVwF32ws1PcKaiMzT/kKCjKWCwmiLUH8bG0PPuTUabOoEvKCvF7LPCzZoFIcGR evd3Orzwe1Q2Oo+BtQQZbEkhIV6OOjyZnLH8Kpj/sHtixdfL6yPzK5/V9YEN2npw +3wV6kgQo7LGlLDbl5uEw== 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=fm2; t=1745413278; x=1745499678; bh=e FGbZxUap6jnv0IT9tf99KB1Hw8wcvWst37z5DXX+80=; b=B2Dt2V6/OOlYcBkJm D1w9pPQvzmlTQUI+sJO2cESvNH41c5zdTrFJ+O7mj8cUYthXTMfaCZG9FZpnp/9b ieSQnZS7/rv0d+I3/uhfu5xtaMAgP145GXEFPCuFS7PEfjv9DtJKM9GaA12mpAMO YNO/rfQ0usJXPx1uF6UuoLSXLAros9ix0dk8De7j+qEXHgeeilCBx7gpjlGb12BN HFQsOAL7fXQoFYHXLMrEfOvkpvdH+4IJOa3iXVm3lctVYvUpDxeONQT/eLgeiTe0 rqPLEwUHPzrrrZwplDtBea0o96waJvflpyiY1RRFymYsAr73oH9qpd+sKJlZgns5 sWNFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvgeeiieeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuh hrihhlvghmuhdruggvqeenucggtffrrghtthgvrhhnpeeiheehkeekleegueeifedvffeg tddugeffheehfeeftdduhfdtkeefleelkeffjeenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtth hopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehrvghshhhkvghkihhrihhl lhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdgsuhhgshesphhoshhtgh hrvghsqhhlrdhorhhgpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Apr 2025 09:01:18 -0400 (EDT) Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 15B0A90; Wed, 23 Apr 2025 15:01:16 +0200 (CEST) Date: Wed, 23 Apr 2025 15:01:16 +0200 From: Alvaro Herrera To: Tom Lane Cc: Kirill Reshke , pgsql-bugs@postgresql.org Subject: Re: Command order bug in pg_dump Message-ID: <202504231301.ln7igwajlzu6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1218166.1745355203@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Apr-22, Tom Lane wrote: > After poking at that, it's easy to get ChooseConstraintName to do > something just slightly different from what I said above: the rule is > now "add an underscore and some digits to the name used for the parent > constraint". I like this even better than the previous idea, because > I think it makes it more obvious that the name is derived from the > parent constraint. However, this changes the chosen name in more > cases than my previous hack did. So I'm reposting the patch to see > if anyone feels this is too much churn. I think it's okay as a > v18-only patch, though I wouldn't propose it for back-patch. I think the new constraint names are better, so +1 for this version of the patch for 18. I agree that we don't necessarily want to backpatch this to stable branches though. I wonder if it would make pg_upgrade users' lives easier if we had pg_upgrade --check notify them about possible collisions on these constraints (for the older branches). I don't have good ideas on how to implement that though other than a trial dump/restore, which is perhaps unreasonable. (My position on pg_upgrade is that if pg_upgrade --check passes, then you shouldn't need any additional tests for assurance that running pg_upgrade for real is going to work. So I would be happier if we could detect this problem.) -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "La primera ley de las demostraciones en vivo es: no trate de usar el sistema. Escriba un guión que no toque nada para no causar daños." (Jakob Nielsen)