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 1vqf8e-00FLvg-0G for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Feb 2026 22:26:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqf8d-00Bdip-1G for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Feb 2026 22:26:20 +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.96) (envelope-from ) id 1vqf8d-00Bdig-0K for pgsql-hackers@lists.postgresql.org; Thu, 12 Feb 2026 22:26:19 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vqf8b-00000000LzV-0sxA for pgsql-hackers@lists.postgresql.org; Thu, 12 Feb 2026 22:26:19 +0000 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-45f004e7d71so1756408b6e.1 for ; Thu, 12 Feb 2026 14:26:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770935176; x=1771539976; 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=SjMLyyZxz4+3s1JC80zqiBjFT3msH4tDAWZdVgLVopo=; b=BzskdSJq/n7qUMgCZz524LwNtDidcYhFauzqsaeXVwsw1VzHSf1ZAlZateWLoKImfk gsUhF3UdL4ScDarYiIu6zBAiss9H4aMW45T3oCK0jecb1a9DcWT4jA8FQeoVElipJ9c2 pPS61fIDOunkElZkalnfH36jxg4vHEAAhOB6gFqAvb0sl6r9XS0rmgGQPpLPgoQ6O1L/ 8NqUILufMkTjKEPwWp4DA3KWL/4uYseqPoeCtgqLkHd5q9wwimiVh0adC0K6xufGKq8Z GI7lKtMkmqI/1KaNm9ogrkT1zGQ/MV2q+p03rg5/SAGl4s11Ee4F56ZI+Pm6fMy7v+Hq PStA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770935176; x=1771539976; 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=SjMLyyZxz4+3s1JC80zqiBjFT3msH4tDAWZdVgLVopo=; b=jJ/WmpqyAn15eTgcngcim5o0ssMMB7/j0APcVqYl+uJeLNwHg9T51vMv5qTf+FF4kf QnYQYiZiDfmnQGjdNarrrKJlvVOKunk0mttpUnSgpOJ4I/hspoOKugqVAE76sRpLhOU3 irSrpIukxc8OHnRvd55+bddg1h4W1pRFAUKAArI4wK/OZa5qlj1YPcW2ROtZVTT7kTcS gt+uGXPUEROizQSSwlWmQ5YcVfxFP+gowF5v4jhJiSiOP2xasdegHPpr5hpVITYnXZr1 dLFTHxkNzWf4Cq7kHhQ4V6idHQ9MwMZUbz18VdU0HDDsABuwXzi05m0vbN0nmPQ9argH USfw== X-Forwarded-Encrypted: i=1; AJvYcCX6OWNVWj7kpyV1Lcgjs4UFb6DhrR6j7OzXsV++IcEv9FvxNPyMSSJB0yNMAvuz56sulAo5scfiUvmb1Bpt@lists.postgresql.org X-Gm-Message-State: AOJu0YyVGEpHIlXNnHeVE66P/FtXk3AL6dM4Bq3nKgJrEumqNEiIEk8c /aeaYpqOB/QH3gIm4oGfifikfYIxdACjZ6eNHpLpV6Ly0ZNLmPaK8ka6 X-Gm-Gg: AZuq6aKNCpZv1NlJeY3IpGPBwrht7EX6pBI+teWlCCQQGvfRLQT5EN53vHJ5HL31FUj 5L7zaYYcT0p9vSqTP3+ieL5dQGJujEmi2cnTSbbTYfu/RkDuHmQAAgSy8vouGmQcmDYoKxMNVuw u8cDtHEgoK4DLz3i7/DeVkxTKDPfkK+qMByWdHr2uXIxUmVytgukWVaidOp8W8X4XjDLtpZOiQg i+6VCzqj48Ps3B3n610cC2tn96wIzKEBiiVocd0wGF163k8DUP/LK9aZKV3JHaGR3cbjAqNgRXs 3EzTQI5Lzn8QeFpIhlAkFHqHAAeywhTo5DEHk6cY79s6lFPragYFVz7/5ySYbG+9LZftraeNKeO 5m10DEnDtu0eICVi4PABoFfIZw62VIrZn4rRXANVVPFGDVCnhuPFrbq6Whm4HVMYjyBXnudh3nT fjN40UQpijeSvQDwphcT5vx0KDhXe5xFLaDmQI8uQA5zNkynkBLMcGml+MzrVCZgc42HluatxEq EGRcpiBdX8aPxSa X-Received: by 2002:a05:6808:d48:b0:45f:1fc1:2626 with SMTP id 5614622812f47-4637d87b445mr1914776b6e.1.1770935176375; Thu, 12 Feb 2026 14:26:16 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7d4a76e1e59sm4633726a34.17.2026.02.12.14.26.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Feb 2026 14:26:16 -0800 (PST) Date: Thu, 12 Feb 2026 16:26:14 -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 Thu, Feb 12, 2026 at 03:59:24PM -0600, Nathan Bossart wrote: > On Thu, Feb 12, 2026 at 04:46:30PM -0500, Andres Freund wrote: >> I guess you could instead generate a COPY using WITH OIDS. But it's probably >> not worth having that path, given we already need to support COPY (SELECT ..). > > Ah, I forgot all about that COPY option... > >> as we'd just include the oid column without needing to somehow include it in >> the attribute list. >> >> [...] >> >> I guess WITH OIDs also would avoid the need for this. > > Will give it a try. So, in addition to hacking in the OIDS option to the COPY command executed on the old server, we still need to hack the OID column into the column list for the dumped COPY command (or omit the column list entirely for pg_largeobject_metadata). That seems to result in roughly the same level of hackery as before. -- nathan