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 1uuhTd-00FeFA-OC for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Sep 2025 01:12:26 +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 1uuhTc-00BUqj-R3 for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Sep 2025 01:12:25 +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.94.2) (envelope-from ) id 1uuhTc-00BUpP-HE for pgsql-hackers@lists.postgresql.org; Sat, 06 Sep 2025 01:12:24 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uuhTZ-000nna-1G for pgsql-hackers@lists.postgresql.org; Sat, 06 Sep 2025 01:12:24 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id D21E41400361; Fri, 5 Sep 2025 21:12:20 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Fri, 05 Sep 2025 21:12:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1757121140; x=1757207540; bh=SLJ3QOilbe Z4K1ETcTBfvm7t2eX0ehndmjxcd+yS5aY=; b=pvv+o6nXNfGlq3toZ4OCQ2pbuE q2vO22wztSty5JutbNzkG6dhjGzrNjpSAnLwO1sttdgvmIqlCaml/4YalAQ9zSfr SDpK87al18pyaVVihj0AnsMckOK2Hn/hebWjvgo1JDtUwYMsSkcQodaBVhkDKLUq 5PFgVinDmx7GhT0gnWXB0nHj5qi0VCFq+afP098SV+ld91SJLTcnYLPUigvwp+d5 aJaNyQyyXivgy7BqvZTc70zDVmLTzwHLn5pyanug3gizSgbeOg/D9wothxUSMJ/2 QX6PQX0BTCA3RLdoifJj0N8gkpdnXZCBtFkkFWTszuaE/9e7DZrFc1k0H6fA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1757121140; x=1757207540; bh=SLJ3QOilbeZ4K1ETcTBfvm7t2eX0ehndmjx cd+yS5aY=; b=XCKhYern9jfVvXklrt284iRDyYmJugeY2LUm+4FrAOtIeX26uzk 08ENrA2P0FoNf4A6WuVRK4N+sDaXe6Mij84kHypDWVq5lHVJGmepI9W8pAeEb2hs zgCPIZEqhrMkfGOVp0mRWt0YPicwVdL+xLoPkP21uNNrtQSnrqgj0eXXCy/XYOnx INkCpODLCt7D59jexeCtMo/9Q5KkBHghux667ubVFCb0FJXNsfNgLBvUkDpa8Ou+ WRQeNmHY/kdt/A6fxBKaBTykFpRhIODaLuNsg6vwgx4318VtUSaKFcexhfk5zor5 6WQJGs6zJg6Dh3XXJ9dXcDhEPumR7uusgeg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddutdegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehnrghthh grnhgusghoshhsrghrthesghhmrghilhdrtghomhdprhgtphhtthhopehtghhlsehsshhs rdhpghhhrdhprgdruhhspdhrtghpthhtohepnhhithhinhhmohhtihgrnhhisehgohhogh hlvgdrtghomhdprhgtphhtthhopehhrghnnhhukhesghhoohhglhgvrdgtohhmpdhrtghp thhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrd horhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 Sep 2025 21:12:18 -0400 (EDT) Date: Sat, 6 Sep 2025 10:12:11 +0900 From: Michael Paquier To: Nathan Bossart Cc: 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="X/C1H3qJH8Bz80LR" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --X/C1H3qJH8Bz80LR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Sep 05, 2025 at 01:12:49PM -0500, Nathan Bossart wrote: > How does this look? + # We can only test security labels if both the old and new installations + # have dummy_seclabel. + my $test_seclabel = 1; + $old->start; + if (!$old->check_extension('dummy_seclabel')) + { + $test_seclabel = 0; + } + $old->stop; + $new->start; + if (!$new->check_extension('dummy_seclabel')) + { + $test_seclabel = 0; + } + $new->stop; Yep. This plan is safe to rely on. A tiny comment I may have is that the LO numbers are hardcoded and duplicated. I would have used a variable to store these numbers. Please feel free to ignore my picky-ism. -- Michael --X/C1H3qJH8Bz80LR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmi7imsACgkQnvQgOdby QH2GmA//dlKMxrbWqfv+M9cKtNG59z8knzCe1Jr23xwuz2MTQEef5Z2oSyb0WfQu wqVphrBnq0otxBiRq27KM+4XiCn4z/fP296HZlFc2gOmd74gwY7q+1AgzYsdmaxI vZUHNhP9w+C2W/R4IbPLkEu872KAf5Kw+6JcT9aWlJEBtys+E1ATULy00JsJHfsA HE8c6f/Xz5StZp9jh7ZfZesf3rSzvK61OnQnRj713x4Bv9yRXq3aEefnYILx2lr/ iKXYFfRBACIulLqcuLNW2UbZFTnpEajd4IkrI85Nt5N0EGAuOJ2rY+kXJhKJTkYd ieDxCno02f3SMyU7h7Pk+cEiVNnuxMdbwWjRr2RiDCzF25xmgC0nXBzlgVPuULqi oaFhIXGBeg7uvldiaquJXUzChcv3RwQW1N2RWYtLqw+KvfoEWWlG1v8wGrsIVqIq zfX2PBz6QQ9fWhCD1W+Cw02syWXayrbpC0kGkjVpEKDt54oh3uHOJ3Iync+r11qP DBFTB16IakRkVn3w9TGOPhhJo9vYCBTXB/t9kTch2TeeZ+lDuUZouOavN1m77g1x Dlmpi7SzjsAZD40T27lmzihMImDfMOWlj1Oejf5U8nZ/XoS11owI8R22sVCcdknH bObBdWrG9r4Kk2rYh10s+dmsLuIOnLuNuRWojC7aL1rO3qWNwIY= =bXEx -----END PGP SIGNATURE----- --X/C1H3qJH8Bz80LR--