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 1ngoyD-0002Zu-CR for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 14:36:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngoyC-0007mg-6c for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 14:36:44 +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 1ngoyB-0007mX-Tp for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 14:36:43 +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 1ngoy9-0007I9-Mn for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 14:36:43 +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 23JEaaUg2549927; Tue, 19 Apr 2022 10:36:36 -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> <2375734.1650312418@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 19 Apr 2022 07:39:57 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2549925.1650378996.1@sss.pgh.pa.us> Date: Tue, 19 Apr 2022 10:36:36 -0400 Message-ID: <2549926.1650378996@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Mon, Apr 18, 2022 at 4:07 PM Tom Lane wrote: >> There may be some corner cases that aren't described by any of these >> three blanket scenarios, but they've got to be pretty few and far >> between. > My first thought whenever anything like this comes up is cursors, > especially but not only holdable cursors. Also, plpgsql variables, > maybe mixed with embedded COMMIT/ROLLBACK. Those exact cases have had detoasting bugs in the past and are now fixed. > I don't find it > particularly hard to believe we have some bugs in > insufficiently-well-considered parts of the system that pass around > datums outside of the normal executor flow, but I don't know exactly > how to find them all, either. I'm not here to claim that there are precisely zero remaining bugs of this ilk. I'm just saying that I think we've flushed out most of them. I think there is some value in trying to think of a way to prove that none remain, but it's not a problem we can solve for v15. regards, tom lane