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 1uuLBR-007Esx-9b for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Sep 2025 01:24:10 +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 1uuLBP-003bXv-H1 for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Sep 2025 01:24:07 +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 1uuLBP-003bXl-1f for pgsql-hackers@lists.postgresql.org; Fri, 05 Sep 2025 01:24:07 +0000 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uuLBL-000cxr-2a for pgsql-hackers@lists.postgresql.org; Fri, 05 Sep 2025 01:24:06 +0000 Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-3f2da50ad46so11876365ab.3 for ; Thu, 04 Sep 2025 18:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757035442; x=1757640242; 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=1mhWXLzmcxJMV3jQP9KVFPWehXD0rm5wEOBlZiScvBI=; b=VRWEYLq7cAhUjUCT2mainMGRYe438z8K5TuGYO/EeNpv63J8eK+EY7Hx7E09VSs2Q6 0mIkK+MFilErSQOivKQdlqVMG0rPsMYrxUN/nqkR1bOAcfKtkSBa3/6tT6of9Sq4cj72 gOmUaU8Q3kb4/9vV2cX7bvIa78kgelRKB1Q6XqxbfLKXikwtSecikTlJC30jxU36+At5 agop9X5Dv/4iQF+/peu7X2v8+RA/YgdCP+sAa8SbZp++j/8lZlmrNUm08L7mnhCu6k1t P0UUHen1me8e2RKzLni0SlT09Owh8MHdnl4L9KtOCxaen2DhqkQdFcBkCw992fR6EkLC 6sCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757035442; x=1757640242; 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=1mhWXLzmcxJMV3jQP9KVFPWehXD0rm5wEOBlZiScvBI=; b=QDx53W/oo0i5YoGnH0qIdCVyodREXnx0aOsms5cIMakZVbpUZd1WG6QTW+9NVn6hjO n7KBWPoE83fBrmHGGg1uiB324KvYjR10TZFr89tdFYJ7VgcwChXVd9ui8GgU3wv2nGu0 /eFNORLhIO1xQV94u97ONWVG75lhxzUAPOzt2dri73UZOqablKslAUZ4Q+OdHepVBDFc e+sgyff+PPtgiPxMDdJlhYHYKxlJoiwYEuo4K80GpUP+yY79oXZpER65bSmdH/PIotrv Gsbj1QnwI0D3Cph8XPWEh2ncTPwYzd1IJBLqossqi0uUaVN76X+9rBtHwWTurCpoAd38 JvCA== X-Forwarded-Encrypted: i=1; AJvYcCWorSAVlJQTeur/Hw5TIHROfCLDIxXgZQBQJw4MdZiBrp2BO7xKDUyBgc26o/3hVP9spzCejaVZEC5ozgJo@lists.postgresql.org X-Gm-Message-State: AOJu0YzewFBIvg4Wr6ZlW7HWlAKIUxXbQe++SyYbgMb6YLoxE8dp2p2U 3BPUD/DvjQBk7/NR5YF8CfODHrA0U2rDiJY4Zbk+Tl95dvFHcGmTHFu4 X-Gm-Gg: ASbGncvPvYm8ktYhqkMoyPuCKD6TnTs9aOcJS0CjCbRUeH/ChPufPKZSWCiix6KJbHH GnuSi5KrSeA4IU1WQyfyhUsm+Q4vptnjyBCr6A1SDh9oq+oNpD+zteXvsexsJG5yLMs4V6etoyd xfYq2m+X1zapnhFNyecRZBY2uns8cyLPxmlDs680AK0NX/unQ58T4weVqfKjbltT5ycpC9ujQjB Q59hnv9ioxmMFgWV2ixWV8bBijCcz2E5j7wSF1lVVXBKFJMCYqCm0MRcNA0mRDIRasCbCvPbeCb JjI0c6vU1EUXzdN3mXsHVRg7LqDnxShCzdx0pZ2zVdNBdgxr2nMIG7yO2gnc4/Dppwrl3UeMGoZ NV8OesoFfEztplqqDyWuwfHne+Jjnb5aKb9C9a+t43ypInaPEhIIwKa80oOEdYm/RtBCYhfmCHh fKpEhOW0cG2TGNGRpv5gSKp/8= X-Google-Smtp-Source: AGHT+IF09oSvfU1qlRz/CTfeijdLxbfivPa51At0hXdl2bS8slJY6oryAdFiQlKGajuR9EgIGoeEsA== X-Received: by 2002:a05:6602:6411:b0:884:705f:707f with SMTP id ca18e2360f4ac-8871f44a162mr4064460939f.8.1757035441624; Thu, 04 Sep 2025 18:24:01 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-88765e370c2sm72615239f.12.2025.09.04.18.23.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Sep 2025 18:24:00 -0700 (PDT) Date: Thu, 4 Sep 2025 20:23:58 -0500 From: Nathan Bossart To: Michael Paquier 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/mixed; boundary="FuG7Wvwo8mkbkV/T" 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 --FuG7Wvwo8mkbkV/T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 04, 2025 at 01:59:36PM +0900, Michael Paquier wrote: > On Tue, Sep 02, 2025 at 09:43:40AM -0500, Nathan Bossart wrote: >> Do you think a new pg_upgrade test for security labels is worth the >> trouble? It seems doable, but it'd be an awfully expensive test for this. >> On the other hand, I'm not sure there's any coverage for pg_upgrade with >> security labels, so perhaps this is a good time to establish some tests. > > I would argue in favor of these additions. Security labels are not > the most popular thing ever, AFAIK, but your patch makes the need more > relevant to have. The cheapest approach would be to add a LO creation > pattern in src/bin/pg_dump/t/002_pg_dump.pl, with an EXTRA_INSTALL > pointing at src/test/modules/dummy_seclabel/ to be able to create the > security label (we already do that in pg_upgrade and pg_basebackup so > the trick works). That should be enough to make sure that the binary > upgrade dumps have the seclabel data included. It's a bit funky, I > agree. So if you think that this is not worth the test cycles, I > won't push hard on this point, either. Ah, I'd forgotten about EXTRA_INSTALL. That simplifies things. There's enough special handling for large objects in pg_upgrade that I think we ought to test it end-to-end, so I sneaked it into 006_tranfer_modes.pl. WDYT? -- nathan --FuG7Wvwo8mkbkV/T Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=v2-0001-pg_upgrade-Transfer-pg_largeobject_metadata-s-fil.patch Content-Transfer-Encoding: 8bit