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 1ubMyL-0001z0-0g for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jul 2025 17:28:13 +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 1ubMyH-00AKqd-BL for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jul 2025 17:28:09 +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 1ubMyH-00AKo3-1D for pgsql-hackers@lists.postgresql.org; Mon, 14 Jul 2025 17:28:09 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ubMyF-007GrP-2u for pgsql-hackers@lists.postgresql.org; Mon, 14 Jul 2025 17:28:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 56EHS3DU700577; Mon, 14 Jul 2025 13:28:03 -0400 From: Tom Lane To: Nathan Bossart cc: Nitin Motiani , Hannu Krosing , PostgreSQL Hackers Subject: Re: Horribly slow pg_upgrade performance with many Large Objects In-reply-to: References: Comments: In-reply-to Nathan Bossart message dated "Mon, 14 Jul 2025 11:24:14 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <700575.1752514083.1@sss.pgh.pa.us> Date: Mon, 14 Jul 2025 13:28:03 -0400 Message-ID: <700576.1752514083@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > Here is what I have staged for commit, which (barring feedback or > objections) I am planning to do towards the end of the week. Is it intentional that this does +#include "catalog/pg_largeobject_metadata.h" +#include "catalog/pg_shdepend.h" rather than including the corresponding *_d.h headers? If so, why? Our normal coding convention is that frontend code should only include catalog *_d.h files, since the main headers might contain frontend-unfriendly declarations. If there is something we need to expose in these catalogs' *_d.h headers, we should probably do that. regards, tom lane