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 1u2Z3S-002WpY-Mp for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Apr 2025 17:17:38 +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 1u2Z3R-005lD7-2q for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Apr 2025 17:17:37 +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 1u2Z3Q-005lCw-PQ for pgsql-hackers@lists.postgresql.org; Wed, 09 Apr 2025 17:17:37 +0000 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u2Z3P-003uhw-1i for pgsql-hackers@lists.postgresql.org; Wed, 09 Apr 2025 17:17:36 +0000 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-7023843e467so69124027b3.2 for ; Wed, 09 Apr 2025 10:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744219055; x=1744823855; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=2AOeolx5B8YnrZMDuQU3wQOmp1JWsDAGiML26oKeVVY=; b=KKg7Ow2T6QYj9ZlTcd7NWBWEkmV7OvyN2AnScFFpjPqId2F3lAcB47AYsplBDzvPNy BDfAEHILV7niVsFIISucgsOVoamhRLsFdxKXaOOzH/GwR7qlb0TlIscojeQG1OT5RVvX BHU1d+JkVLwDnSFdHfR1Lvl03yZooJC2Eb1Yh9+pdhWqssAQHoUmH4AOqPjEfLpACv3h FsB/M2p5hby554XwGyGGTubgtdM6NHHLCZ4E8UjNrr7DYJGWC7Q3i/c1Gntcu6toum8l Xsr7meAb30Klt6/i9MaBCOWrehWHAcOUBq35Yg7SxbX1XIIb0uSpZDmtmM2KrNk/L7Gk eECA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744219055; x=1744823855; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2AOeolx5B8YnrZMDuQU3wQOmp1JWsDAGiML26oKeVVY=; b=MXyqqDvwtx6GwcSDvNrrgtblRfDzIxvl8sMJ2zTztgrjWwD73KQW04j3tC/HkHHmiL apIOLuZ6ZxUF3akp903oYxx45uZtWoSYQ3Q32Y/YiEMDVKxtyUyjooCQeUv9EcPlHM84 4uCNTHJncT6FpnmsQqsxblrAMaZk92fbe+qmHP+KCZN28y0HS2ZJ36yDksizkYJ0689/ uaoxTOr+++S6PTk2pVGhVMnwrUAQDWeIRBw7uJFe6/qCWvl75mM8VGg8+RH17SbNPXOv a/jQ2RQ5NjAvvSj+3pEZZ/nIHE3aYEa2UGdZOhouzJVURG39xHwIeChsvL4AOD/J8nJS I/Qg== X-Forwarded-Encrypted: i=1; AJvYcCVvCIuooZmmaNIZ7O+1ROMq9DI4uXiJUAAeyTtCKNhyU9iM6Y+TlZ3HDwLPiMmaQo+HNa05l5Dn/5ggQSIh@lists.postgresql.org X-Gm-Message-State: AOJu0YwY+c8qojDzUuukpF2+/sO4gCrfxrlhBAB9qarqkJHKYARMAgW4 Y/QgfLAcregh1osZv+DvUs4MmIEnzYOUKiTTeNc8jvlDvjMMRMMI X-Gm-Gg: ASbGncs1J+orCuidLePNiy4XLPnBaMiGzuWT4BgJL//8Slv1sN4NXBj9ZAEm+6pXLiz 17vvzDVLf7HX0c4amGYnfJQqJQrGUz/EPtZNtMCrIeOpxex3LB0fgSVkpor01bcxWtWnK1/gwKL U77j0gT8O98dMz9uA3hTvHu+6bL1JFkaXbCMhL421NAMTNqp006YO6/bY05iZYbyCHNKcGCiNSr +ud8lq9LcOQnA20/It5VIBBwN00fOGy1Iop59bWIeCsTuWxxiY6LkPwuSKq21cA/ASa8dh3R7Si b9mZE/gLK6q2e6K4oMJp7lyN0qdcowfVhCTjotV2hkgbsi46ZlU+/+5EUgfOXKPwReGjGKjvnTx bhgzozzbOABWECrLPMLvEhKIrJ7r0SQ8= X-Google-Smtp-Source: AGHT+IEf/InJqwVYR3hOJJul7Tq9wVBWKeWVFtFJrVRhQad5/43prdAGYeYEK6sS507pg6sBS9Xl1Q== X-Received: by 2002:a05:690c:4d89:b0:702:56b5:b3ac with SMTP id 00721157ae682-7053ad63ad6mr60426847b3.14.1744219054776; Wed, 09 Apr 2025 10:17:34 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7053e0e7eaasm3576307b3.4.2025.04.09.10.17.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Apr 2025 10:17:34 -0700 (PDT) Date: Wed, 9 Apr 2025 12:17:32 -0500 From: Nathan Bossart To: Hannu Krosing Cc: Tom Lane , PostgreSQL Hackers Subject: Re: Horribly slow pg_upgrade performance with many Large Objects Message-ID: References: <4044567.1744128814@sss.pgh.pa.us> <4047312.1744130263@sss.pgh.pa.us> <4050387.1744132029@sss.pgh.pa.us> <4054965.1744134140@sss.pgh.pa.us> 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 Tue, Apr 08, 2025 at 09:41:06PM +0200, Hannu Krosing wrote: > On Tue, Apr 8, 2025 at 8:39 PM Nathan Bossart wrote: >> I've also verified that the dependency information is carried over in >> upgrades to later versions (AFAICT all the supported ones). > > If I remember correctly the change to not copying > pg_largeobject_metadata data file but instead moving LOs as part of > schema was done in v12 when oid,, which had been a system column in > v11, became a user column, so upgrade to v11 is likely also missing > the dependencies Right. -- nathan