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 1oJF8L-00052V-7l for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Aug 2022 14:14:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oJF8J-00013z-Rg for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Aug 2022 14:13:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJF8J-00013p-Hl for pgsql-hackers@lists.postgresql.org; Wed, 03 Aug 2022 14:13:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJF8H-0001JQ-DI; Wed, 03 Aug 2022 14:13:58 +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 273EDpk02968537; Wed, 3 Aug 2022 10:13:51 -0400 From: Tom Lane To: Robert Haas cc: "Jonathan S. Katz" , Noah Misch , 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> <2686054.1659469199@sss.pgh.pa.us> <98286e9b-8fe6-554e-c23f-d67a3df2c30d@postgresql.org> <2687956.1659469881@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 03 Aug 2022 09:59:40 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2968535.1659536031.1@sss.pgh.pa.us> Date: Wed, 03 Aug 2022 10:13:51 -0400 Message-ID: <2968536.1659536031@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Tue, Aug 2, 2022 at 3:51 PM Tom Lane wrote: >> I also think that ">=" is a sufficient requirement. > I don't really like this approach. Imagine that the code got broken in > such a way that relfrozenxid and relminmxid were set to a value chosen > at random - say, the contents of 4 bytes of unallocated memory that > contained random garbage. Well, right now, the chances that this would > cause a test failure are nearly 100%. With this change, they'd be > nearly 0%. If you have a different solution that you can implement by, say, tomorrow, then go for it. But I want to see some fix in there within about 24 hours, because 15beta3 wraps on Monday and we will need at least a few days to see if the buildfarm is actually stable with whatever solution is applied. A possible compromise is to allow new values that are between old value and old-value-plus-a-few-dozen. regards, tom lane