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 1ngSlO-0000g3-1F for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Apr 2022 14:54:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngSlM-0000iH-Tn for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Apr 2022 14:54:00 +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 1ngSlM-0000i8-KR for pgsql-hackers@lists.postgresql.org; Mon, 18 Apr 2022 14:54:00 +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 1ngSlK-0005Sf-Fc for pgsql-hackers@lists.postgresql.org; Mon, 18 Apr 2022 14:53:59 +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 23IErtPK2272217; Mon, 18 Apr 2022 10:53:55 -0400 From: Tom Lane To: Robert Haas cc: Andres Freund , Justin Pryzby , Kyotaro Horiguchi , Erik Rijkers , Matthias van de Meent , PostgreSQL Hackers Subject: Re: TRAP: FailedAssertion("HaveRegisteredOrActiveSnapshot()", File: "toast_internals.c", Line: 670, PID: 19403) In-reply-to: References: <1527714.1649957811@sss.pgh.pa.us> <1535399.1649963150@sss.pgh.pa.us> <1542208.1649967960@sss.pgh.pa.us> <1971135.1650134559@sss.pgh.pa.us> <20220417133112.phzg25rs66w5zipv@alap3.anarazel.de> <2131038.1650210718@sss.pgh.pa.us> <20220418143901.mdxs53vq3g4u2skp@alap3.anarazel.de> Comments: In-reply-to Robert Haas message dated "Mon, 18 Apr 2022 10:44:22 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2272215.1650293635.1@sss.pgh.pa.us> Date: Mon, 18 Apr 2022 10:53:55 -0400 Message-ID: <2272216.1650293635@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > I still think it would be better to have GetOldestSnapshot() be > smarter and refuse to return the catalog snapshot. For one thing, that > way we'd be testing for the problem case in non-assert builds also. I was wondering about that too. On the other hand, given that we know this area is squishy, transforming fails-in-assert-builds to fails-everywhere is not necessarily desirable. regards, tom lane