Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEaIx-00023c-6D for pgsql-general@arkaria.postgresql.org; Thu, 21 Jul 2022 17:49:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oEaIu-0003FE-Qa for pgsql-general@arkaria.postgresql.org; Thu, 21 Jul 2022 17:49:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEaIt-00039e-Q0 for pgsql-general@lists.postgresql.org; Thu, 21 Jul 2022 17:49:40 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEaIq-0002pc-Qu for pgsql-general@lists.postgresql.org; Thu, 21 Jul 2022 17:49:38 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0A61F3200930; Thu, 21 Jul 2022 13:49:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 21 Jul 2022 13:49:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1658425774; x= 1658512174; bh=veaml4oBVroj4uOHY5IPtJwxlZj527YFfj/8C2J9S4k=; b=t p9KH9/7hpdAEvKTtDhmITJOALJvTDx3LT8Cu+P8BaHDttQ5OilM6wxA1+cM+8AxE VwQBDZnSwSLqtYbTMN3D23Y14ijRvn4eBh20YLWHdABF+mk08yglRSXqgRy23RQg Pk4LWZ1r3m3GA86Rgr21iHeQnG3nKeODoXXQX4v9Zi/Ia8bYqgUpGuf2J22UDhem xbzf+BsnceL/JhxepMYY8pkMwy61cLeMb4/mENQW9ADlxyRGr5d5CrfX3+Q5bunU epXpBs8YajTfJ+5ENIAQyeG/3J9HTd7SSsc2Uguu0pDF+/GfR5qhn44Viub2G0CF Wjr6rHsXVJM0CUKr9flHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1658425774; x=1658512174; bh=v eaml4oBVroj4uOHY5IPtJwxlZj527YFfj/8C2J9S4k=; b=uHUYxk60FaXDjzalr BsAejWhFEDy0h2ri2SlHdNRLWOY0TIRo43ohaSaYkHzBbuhY0+VqNzIT/lTZ8DC6 TksJJT1FXe7Wl2OtjbFNlZ6ehnJmgGdskcM8017Dg+9rTrgYqBQJVyjUPWc9fOGK AclnHXEABT03bVNaAUqtSoKVzKRHZtyP7b+ylrNTIYJYl0D3k+n2kU2LMpYv8Cp6 QNkC9x6C3DXlOiZxZ4KyzFny9Y9Kq3MCTttO9AVDrp8PrqDd6nEKgHkjvDbHUoYw q66sdFw8UK+a0fPBizi0EFKMkmVs0wUMp4JTgnmLhU0tJ6tHK+zZeSa7jjBT98Tu N6BVg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddttddgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpedugfeuleegveffhfegleejhefhtedtgeeileeggfeh fefffeevgeejtdeutefftdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Jul 2022 13:49:33 -0400 (EDT) Message-ID: Date: Thu, 21 Jul 2022 10:49:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: FK Constraint sort order with pg_dump Content-Language: en-US To: Christian Barthel , pgsql-general@lists.postgresql.org References: <87h73a4bu3.fsf@online.de> From: Adrian Klaver In-Reply-To: <87h73a4bu3.fsf@online.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/21/22 10:25, Christian Barthel wrote: > Hello, > > The sorting order of FK constraints with the same name is based on the > OID (because it lands in the “Usually shouldn’t get here” OID comparison > block at [1]). Wouldn’t it be better if the order of those constraints > were based on the table name? > Why does it matter? -- Adrian Klaver adrian.klaver@aklaver.com