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.96) (envelope-from ) id 1vpCpn-003TKS-2G for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Feb 2026 22:00:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vpCpk-008fit-2q for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Feb 2026 22:00:48 +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.96) (envelope-from ) id 1vpCpk-008fil-1c for pgsql-hackers@lists.postgresql.org; Sun, 08 Feb 2026 22:00:48 +0000 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vpCph-00000001iiG-3BaN for pgsql-hackers@lists.postgresql.org; Sun, 08 Feb 2026 22:00:47 +0000 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-40946982a78so1137697fac.2 for ; Sun, 08 Feb 2026 14:00:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770588043; x=1771192843; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Zi95Z1gj8K2PhiZMv+P666wZpRsZZDvKSTsBZZvYTas=; b=NBskAxVR2Dpoogo0eBjaX0+ZTJ2Bch2DlbJC19bclIU3d0rinnaERfusFMSyQB+hf/ BhmiR9vK7NSS8hpdhdn4eEw5mfzb48h491nyQbPY9l3uy9RKVFWeitofjWhbF1GA1BxL K4ArAQP6QjoZpTOEU5bxb/zR+xmRsfIwxMB6LM0Tm+lz7fLplzaa43Gk6YAPZQVQt99z Sw9pzfak0fJ6wAs+vfDCJJ5zOVBN+RId6AD0DREXk6Wp82O/ZhhFL8V6MZy5XYGAKHT7 kZrH9DJLHAOqpdGLz0HLC9kur6ihN7ScykQ8BdNUwIe6MwjEusuRsSPIkcW9RXTHfP+r wOKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770588043; x=1771192843; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Zi95Z1gj8K2PhiZMv+P666wZpRsZZDvKSTsBZZvYTas=; b=QHyDyW5q/b1NSDJ3JRdeyimL+Y04/xPrKzijtOvbHHwbftt1s6TMaBAkdSQ/ZhWrm6 gH9roZtmMmxJQ4WwJqHIIEwkx95E+KpnkmxYRYYFs1MthfGUYmAonvW7rf3k/ULg4JSr 1AnJj9sraEQpKl2O2eNrLYAR/kKiuOaOzx12+RQ4if3td9rqn5WDIm9EFXKHRon4smod LLDIvboIToeH0tcstG1ysmHHh9bnlKKB/2VgLFLm8WARpUA1NGrrChlRDUGefCBWwJgR at8NeiPV/0dld0owMWLTDFE/IOpM8ZzInKVPKXW7HJNEmljSwCtyqic/mkCR7h2AndNR USyQ== X-Forwarded-Encrypted: i=1; AJvYcCX7pYWpNK3rNmgnU/bRCUz3Wj3XhXQY1XqsTLg2minmUlYehfGhNg8M70Ohjxu5X/vYzQzEOaNfp78jqxh9@lists.postgresql.org X-Gm-Message-State: AOJu0YwhfuOo336ToHpSthsr4ZAP/Ky0RXs1gx1HAuM341f3T0kUvEGL 7g6RpJoguldf+neNBrn+pEYiYxIOFBXvLyLBCkG5dqVsgQ9sWQzldiGx X-Gm-Gg: AZuq6aIfNR0DBD1BU6FEPS7HkWgDnUvZB3gjlCq2UQbf1QPPeH67KJwSokX8Yoph/Ph fsqdm8naZYP/YKBfVNj5gLvKJH3zYygDe9xHhraOawV8FMsx0C51oUlmtMi7+89df4NRUL+55PH 0Vz5ievSZzgzPxcD4gkiKABIUQZzo3Rq8yI4/GALKutbpkJBC/ygJt/dOV9hC6dPuClyntss5gG Y+QwmXcZQstBN4dKtj3sBvw49p8jVfZfHJA3vLKy5vX0AqQwp/kH5pis1H3VhcEYP5Nbxzqtbeu 8Tg1RmIt4mRs6VN5i9kQ/ZkHeojZvaM95DX/u9fsId4Mcc+81s2QZvCt0HqIfevmCEKPyjiqVvH dwCcY+OuLQENwOR3INcyHyomebT74GCsFI+MPWwn7Tr8AqO6GzIhwqx9wzRNCNMvrX/zqG5CRAg ZDufJU5cyDvgkW0VO0384tgnr2qq+MeuX+dmCQ+KgKd8f5Jidx2oo4o5Uoqliy4vfeFOjoOljYo GZ58ebLKdfptsw= X-Received: by 2002:a05:6871:7394:b0:409:7fab:e3ff with SMTP id 586e51a60fabf-40a96ecc649mr5304471fac.27.1770588043532; Sun, 08 Feb 2026 14:00:43 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-40a992eebd1sm6702276fac.2.2026.02.08.14.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Feb 2026 14:00:42 -0800 (PST) Date: Sun, 8 Feb 2026 16:00:40 -0600 From: Nathan Bossart To: Andres Freund Cc: Michael Paquier , Tom Lane , Nitin Motiani , Hannu Krosing , PostgreSQL Hackers Subject: Re: pg_upgrade: transfer pg_largeobject_metadata's files when possible Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Feb 08, 2026 at 04:26:41PM -0500, Andres Freund wrote: > On 2026-02-05 15:29:55 -0600, Nathan Bossart wrote: >> + * commands. We can only do this for upgrades from v12 and newer; in >> + * older versions, pg_largeobject_metadata was created WITH OIDS, so the >> + * OID column is hidden and won't be dumped. >> */ > > It's not really related to this change, but what is that WITH OIDS bit about? > Sure, they aren't shown by default, but all it takes to change that is to > explicitly add the output column? I'm not saying we have to do that, I just > don't understand the reasoning as written here. IIRC the issue is that getTableAttrs() won't pick up the OID column on older versions. It might be easy to fix that by adjusting its query for binary upgrades from The improvements in pg_upgrade time and memory in a cluster with 50M LOs [1] > are really quite impressive, even if upgrading from < 16. It's rare to improve > memory usage by several orders of magnitude. Nice! -- nathan