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 1nZMn5-0007KE-29 for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2022 01:06:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nZMn3-0003VA-2s for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2022 01:06:25 +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 1nZMn2-0003V1-QH for pgsql-hackers@lists.postgresql.org; Wed, 30 Mar 2022 01:06:24 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nZMn0-00048c-W6 for pgsql-hackers@lists.postgresql.org; Wed, 30 Mar 2022 01:06:24 +0000 Received: by mail-pg1-x52d.google.com with SMTP id s72so16238058pgc.5 for ; Tue, 29 Mar 2022 18:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:message-id:to:cc:subject:from:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=jMA4jCC1Keg0hkUxXXV5o4zsJTVvCmhXkqGVNzrLXPI=; b=f5ufUHPeX80dXzXxnXzr7X6yNrlsrYJJ4/vBjtA+r0kDeovT9hN6yJecTTZNg63VOK qTkh/wSbLwQJMRMrVrqaz/pjzok/XRJ+Y39T+V62cuJ0tpEiP8rULp3oko5d2Ufn7Run /s5lUrMIXHn24fq+kShiEDpG86BHl4cJajD1ib4bkxRhQoCeerGOQPtZ9CeTNbK26Xq+ Xl6TI7VJMaZLq67Kmu2FN1jEybLWd1KmPZF3Dh70iWutmT/XnZqoRiCW6bTv/EKOZImE acDPgA1fOuONT4BR7Vchpyw8X8/L/5kWoEj9gaiXNDGmRG1Jw8sBmCVDkb8uNTvk7+P7 Pdpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:to:cc:subject:from:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=jMA4jCC1Keg0hkUxXXV5o4zsJTVvCmhXkqGVNzrLXPI=; b=UTDUf7HV6166bfSTQAwRdkL8K9iUWOcF9YC4M87Feo9R5nLc6IR8pB//tFqZo+H+E5 NPj7e/dGHs6hWlW7EQYotO3N7/cVDJxG+DpyWid1TIrVOzqrk+ug7bczmmO5lRe2XMH/ tRpb521KywQEBDQUQPGHUEAdssDdNyw8ZzW9xWREUwul1h6hPTuijwv0z5giDgNiHaze Djs72EDR0UvtYJ90dVU+Gq07Rpi9TDw7jxM5SWmDkSPi5C8dWNWsjtvYZ4dFygvs/oBa cM5caNeYAv6eVcDXrETMNAlh2iNOiCy8QQ8IT3dX6lCYKUtCG+jlxfY/GKBJYB3Cbac7 imcw== X-Gm-Message-State: AOAM5302NMQ2BBegqQtBqaLKRpMci+6NCQDR+Yr9cD19SZvhiI+ztZKL z9zwur0Y0YxkXgby9JejH+k= X-Google-Smtp-Source: ABdhPJxhODoBYDFWdqFZhyviDZ8JjYZ+3uUn5Zpg2+kdkH2iI4mvyfcpu6aNzjo78BSE1TF6mPa3Ag== X-Received: by 2002:a05:6a00:170c:b0:4f7:260b:297a with SMTP id h12-20020a056a00170c00b004f7260b297amr30325007pfc.12.1648602381004; Tue, 29 Mar 2022 18:06:21 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id u10-20020a6540ca000000b0037445e95c93sm16647914pgp.15.2022.03.29.18.06.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 29 Mar 2022 18:06:20 -0700 (PDT) Date: Wed, 30 Mar 2022 10:06:17 +0900 (JST) Message-Id: <20220330.100617.1491348930290941094.horikyota.ntt@gmail.com> To: er@xs4all.nl Cc: boekewurm+postgres@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: TRAP: FailedAssertion("HaveRegisteredOrActiveSnapshot()", File: "toast_internals.c", Line: 670, PID: 19403) From: Kyotaro Horiguchi In-Reply-To: References: <20220329.181011.1401235917653600685.horikyota.ntt@gmail.com> User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Tue, 29 Mar 2022 13:29:15 +0200, Erik Rijkers wrote in > Op 29-03-2022 om 12:50 schreef Matthias van de Meent: > > An shorter (?) reproducer might be the following, which forces any > > value for 'a' to be toasted and thus triggering the check in > > init_toast_snapshot regardless of value length: > > CREATE TABLE t (a text); > > ALTER TABLE t ALTER COLUMN a SET STORAGE EXTERNAL; > > INSERT INTO t VALUES ('toast'); > > BEGIN; > > DECLARE c CURSOR FOR SELECT * FROM t; > > FETCH ALL IN c; Yeah, unfortunately I tried that first and saw it didn't work. And it still doesn't for me. With such a short text pg_detoast_datum_pakced doesn't call detoast_attr. Actually it is VARATT_IS_1B. (@master) I think I'm missing something here. I'm going to examine around. regards. -- Kyotaro Horiguchi NTT Open Source Software Center