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 1oJNec-0005Fb-Qp for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Aug 2022 23:19:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oJNeb-0003SZ-MA for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Aug 2022 23:19:53 +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 1oJNeb-0003Ny-CF for pgsql-hackers@lists.postgresql.org; Wed, 03 Aug 2022 23:19:53 +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 1oJNeZ-0005ha-71; Wed, 03 Aug 2022 23:19:52 +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 273NJfsg3260693; Wed, 3 Aug 2022 19:19:41 -0400 From: Tom Lane To: "Jonathan S. Katz" cc: Peter Geoghegan , Robert Haas , Andres Freund , 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: <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> <20220803202014.77m6z5m7v525p2b4@awork3.anarazel.de> <3128525.1659559617@sss.pgh.pa.us> Comments: In-reply-to "Jonathan S. Katz" message dated "Wed, 03 Aug 2022 15:55:05 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3260691.1659568781.1@sss.pgh.pa.us> Date: Wed, 03 Aug 2022 19:19:41 -0400 Message-ID: <3260692.1659568781@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Jonathan S. Katz" writes: > I did rule out wanting to do the "xid + $X" check after reviewing some > of the output. I think that both $X could end up varying, and it really > feels like a bandaid. It is that. I wouldn't feel comfortable with $X less than 100 or so, which is probably sloppy enough to draw Robert's ire. Still, realizing that what we want right now is a band-aid for 15beta3, I don't think it's an unreasonable short-term option. > Andres suggested upthread using "txid_current()" -- for the comparison, > that's one thing I looked at. Would any of the XID info from > "pg_control_checkpoint()" also serve for this test? I like the idea of txid_current(), but we have no comparable function for mxid do we? While you could get both numbers from pg_control_checkpoint(), I doubt that's sufficiently up-to-date. regards, tom lane