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 1ngmES-0008Rc-6N for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 11:41:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngmDS-0008VS-6L for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 11:40:18 +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 1ngmDR-0008VI-RV for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 11:40:17 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ngmDK-0005W8-6A for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 11:40:16 +0000 Received: by mail-lf1-x134.google.com with SMTP id x33so28912153lfu.1 for ; Tue, 19 Apr 2022 04:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qCs1zWEt0iXTqpUXAUk4gUiFKeLgRUDpKW+hFUTJA28=; b=G7LAnyh0s8DucSdtM+GiWLbRRE7qBvPK2ZPGT5IwrBrab9U6RLpBGugs3CKF3v2iKo ZOwShNYmzDNEjnGccj7HnqbmYlAk1XVQJ+lW+eh73Ah8srOoca3W3AIffTrHSAGOKhj0 D2m1iZ/APxAgQnaFhOQWK19Nal4uN4iJRrk30vvJrDa46JVvP1stmtjgzkIzF1w9yfP5 b7E3m9Bu+kY1IZevcwjRBusLjwkpcXuZVoFQw+oiq2e1dBSYPtBEyWhJ4+MFbmP0u+BX V2A1SS3GQBwoVI8whXQ2ThGmffaCuc5zbeiJw//3bfGVmcGx17jsJhuCfbJKgcvd12NJ EAOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qCs1zWEt0iXTqpUXAUk4gUiFKeLgRUDpKW+hFUTJA28=; b=xjVVbYAWlZkk7k4iOjGI2I16hsAbs9VZxzTkLHywP+7ko+ZUHUCgaTe5bmvliMpR85 DBG4FbRPqGSSsBVlpVW+bS+vtvpS0la4L8gkaP+FIALKCN607kh8pfomwLPhXM9BtjQR ALgOfeLuqYa4fbqCs8X9Eobual53XDdJlsfcA9A4WHbIZfgPRgw+lLlVUeCPhlKG1dSh d3fYblgkyWnl6FiNEpg14lJtWCBNsX7VH9Arf88PqBj9B3bXETxqlPfbCkIFE5+/9j/y bVt8h2NtDiepAdnQ9DEXzItCKQ1Jxd1adtumRa39anbiFeFwYMu3LfhRXAvwQWpP1zOR MX/g== X-Gm-Message-State: AOAM531N37BZ8OyJeIgk770/dNPlRcJ26hHy5Llnars9vvXUDqyU0tJo pV68eRFJp+BSKPyopV9zvR3psaVS1vFFyjOUsBA= X-Google-Smtp-Source: ABdhPJwYNRmZoalLYNmFJGYbILIL/mFH15j7DXmeT9mAm9GWv4nFYdldZo/38ydAI8CK/tX3mBGLbzysq4fg61Qo6n0= X-Received: by 2002:a05:6512:2214:b0:44a:348a:d6d with SMTP id h20-20020a056512221400b0044a348a0d6dmr10911601lfu.506.1650368408758; Tue, 19 Apr 2022 04:40:08 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <2375734.1650312418@sss.pgh.pa.us> From: Robert Haas Date: Tue, 19 Apr 2022 07:39:57 -0400 Message-ID: Subject: Re: TRAP: FailedAssertion("HaveRegisteredOrActiveSnapshot()", File: "toast_internals.c", Line: 670, PID: 19403) To: Tom Lane Cc: Andres Freund , Justin Pryzby , Kyotaro Horiguchi , Erik Rijkers , Matthias van de Meent , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. 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. -- Robert Haas EDB: http://www.enterprisedb.com