Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIxck-0007Vo-N8 for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Aug 2022 19:32:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oIxcj-0003Xc-Hr for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Aug 2022 19:32:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIxcj-0003Wd-8q for pgsql-hackers@lists.postgresql.org; Tue, 02 Aug 2022 19:32:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIxch-0003hK-3a; Tue, 02 Aug 2022 19:32:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 272JW5I42684752; Tue, 2 Aug 2022 15:32:05 -0400 From: Tom Lane To: "Jonathan S. Katz" cc: Noah Misch , Robert Haas , Andrew Dunstan , Bruce Momjian , Michael Paquier , Justin Pryzby , "pgsql-hackers@postgresql.org" , Shruthi Gowda Subject: Re: pg15b2: large objects lost on upgrade In-reply-to: References: <3901843.1659116952@sss.pgh.pa.us> <4152163.1659124804@sss.pgh.pa.us> <125444.1659136594@sss.pgh.pa.us> <20220730054401.GB3644221@rfd.leadboat.com> <351616.1659192034@sss.pgh.pa.us> <635c8809-3525-7dae-a1a1-0d9069cd86bc@postgresql.org> <2657259.1659460333@sss.pgh.pa.us> Comments: In-reply-to "Jonathan S. Katz" message dated "Tue, 02 Aug 2022 15:19:39 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2684750.1659468725.1@sss.pgh.pa.us> Date: Tue, 02 Aug 2022 15:32:05 -0400 Message-ID: <2684751.1659468725@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Jonathan S. Katz" writes: > On 8/2/22 1:12 PM, Tom Lane wrote: >> Sadly, we're still not out of the woods. I see three buildfarm >> failures in this test since Robert resolved the "-X" problem [1][2][3]: > Looking at the test code, is there anything that could have changed the > relfrozenxid or relminxid independently of the test on these systems? Hmmm ... now that you mention it, I see nothing in 002_pg_upgrade.pl that attempts to turn off autovacuum on either the source server or the destination. So one plausible theory is that autovac moved the numbers since we checked. If that is the explanation, then it leaves us with few good options. I am not in favor of disabling autovacuum in the test: ordinary users are not going to do that while pg_upgrade'ing, so it'd make the test less representative of real-world usage, which seems like a bad idea. We could either drop this particular check again, or weaken it to allow new relfrozenxid >= old relfrozenxid, likewise relminxid. regards, tom lane