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 1u7Iyj-00EGMY-CR for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Apr 2025 19:08:22 +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 1u7Iyf-00HAZE-PZ for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Apr 2025 19:08:18 +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.94.2) (envelope-from ) id 1u7Iye-00HAXn-Ox for pgsql-bugs@lists.postgresql.org; Tue, 22 Apr 2025 19:08:18 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u7Iya-001SU2-2l for pgsql-bugs@postgresql.org; Tue, 22 Apr 2025 19:08:16 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id F35681140187; Tue, 22 Apr 2025 15:08:10 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Tue, 22 Apr 2025 15:08:11 -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=1745348890; x= 1745435290; bh=RS3ySs+uQH59ZVGh1aTdDEPgHicNyTOGhULFUoabykQ=; b=G m5783oh5arObfjCvp/Qm5xdSi1BTgbSjHFwQxKAsLXgKmnz+kgIYDsm3SplAEjiU qngRNg+xSbJG0wLXMwkpT0VoZjGCe3J0gxkp7NuvuvB0z+D3nvMW38IWg5r5S8Oa CdhX0U9SsUrbsL0R7KsJB1W6S/XAXO9lafRGoX/mG0rQJYVTwUO51OUVLrL+9jld Xa2ICxyH+Af67afh6kn6GwWFppfSW3dFxpQsgYeUX1VsjYQ6mmicrOgM9MSrz0ns U7BebEX5jenHHyD8Wjmj0Jndn0MTz6p7+WmdcmvRi/NrgLx9VFuox02FW2HNKHWc IvD9DVnVM9T25GTViLcmg== 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=1745348890; x=1745435290; bh=R S3ySs+uQH59ZVGh1aTdDEPgHicNyTOGhULFUoabykQ=; b=ghmcLVHcaHHDc2P7/ /BFshdgLBWcjFbIOQ0uOeodYNQWXtcC49jvtygxxzTDC0+x4zcHMagjhIL/0Xdsj Qq0x2eGf0QZc6AVlR7yd/bZWzF+sJhLXXvsQmewUyLHI+AK7atHruRyGsFnAm0m8 lksNeeP+cFR6+aFVn77axUjeh5L18E3NSrzX1tbbGPA2EbNbnRaunMf/ScOaF5CY 8uVASwd+/ATexrdVEWEVK206YHgaMRNTPibcCaO2dHZYlftlNj9J9tIaWVUtKVDZ pjIXGjFugWiOLu2IlGZVWfE4QdL8JKu5cy7jakndk+G9M//w9mRwLecO2pwJkocK WzL7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvgeegheefucetufdoteggodetrf 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; Tue, 22 Apr 2025 15:08:10 -0400 (EDT) Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id D38C190; Tue, 22 Apr 2025 21:08:07 +0200 (CEST) Date: Tue, 22 Apr 2025 21:08:07 +0200 From: Alvaro Herrera To: Tom Lane Cc: Kirill Reshke , pgsql-bugs@postgresql.org Subject: Re: Command order bug in pg_dump Message-ID: <202504221908.4py5zqgmm422@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <836817.1745264514@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Apr-21, Tom Lane wrote: > I experimented with the attached, which approximates "add some digits > to the name used for the parent constraint". (We could refactor > ChooseConstraintName if we wanted a less approximate version of that > rule, but I'm not sure it's worth the trouble.) This seems a better implementation of the idea than what I had in mind. For my part, please feel free to go ahead with this. (I can focus on the remaining problems with self-referencing FKs ... sigh) > The extent to which these derived names leak out to the user, as > illustrated by the regression test changes, makes me even less happy > about the fact that \d doesn't show them. I think we really ought > to try to find a way to not need these entries. But that is clearly > not v18 material at this point. Well, for starters we could change psql to show the hidden constraint names. Since this appears to be a problem for users, maybe even change \d+ to show them in backbranches. For the longer term (19) I can try to work on reimplementing things so that these names don't appear anywhere and are more collision-resistant (though frankly I would prefer to spend my time on REPACK and column reordering) > > I'd probably not change this in versions 13 and 14 at all in any case, > > because the code is too different. I'm unsure whether this is enough of > > a bug to consider backpatching to 15-17; maybe we should just change 18 > > at this point, since I haven't heard of a user complaining about this. > > Kirill's complaint isn't that? I didn't see it as one as first, but I reread his OP and now I agree that it is. FWIW I've been migrating my main email address to a new domain. Finally got sick of noip.com. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "La vida es para el que se aventura"