Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsfvt-008teX-CF for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Oct 2023 09:00:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qsfvr-008Haz-9v for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Oct 2023 09:00:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsfvr-008HaD-1S for pgsql-bugs@lists.postgresql.org; Tue, 17 Oct 2023 09:00:07 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qsfvo-000tKW-Th for pgsql-bugs@postgresql.org; Tue, 17 Oct 2023 09:00:06 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507c1936fd5so291046e87.1 for ; Tue, 17 Oct 2023 02:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697533203; x=1698138003; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=EV2VB06VoZL0SnnMDT803plTlCubZy4/0kZ0LOhLv9k=; b=at4gcCH126wuNazPLAZDyH+pftCnh5FP9nyP1wLHvoN6oi5XO2Bi6GL+5xjO/K7eE7 pax9YNYJZM6nJ84KV7lqNXldZk9puW8jN+odZ56kX/vUPGogtnOYrICVbLlAPfvw/t8d 4o4e+L/53LRk3pVv7qfE7qHyuubxyiSusWUcGhzHHG0fkyx29E6iEs57raDTZ/3mq77Z 6m2g872hioI64T62E2agd1CfN71BPdO2tcxdRjt1ScaQJ2crtmiT7O3xq5SEAFbw7Ate K0exfKG2HjpTnl2kma+4ap8cPlsQ7noUVdtD8Fx0KJ8Hz8QMGkMvcVkge2odsnmShtRq Dqtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697533203; x=1698138003; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EV2VB06VoZL0SnnMDT803plTlCubZy4/0kZ0LOhLv9k=; b=IDS+DwEyltFH+iGXv75zs2SkhbqZI3AFC0L0U61L2gGtRaRDZ0ZTTf72yUodcf2mwb 5W+YhIqUWJJmtubnb/yP4j0shDFFhXHPMuZZOE5emd+q/fI+bTg+w2IT8kzCX1wpUVTv 8Aw6slqEmMbCD4FTE+MjY1u4AR2iPmBW0h0xZw08fuLDp3o82rcywbfuFpaCIytSSc7l O1d8wRW6ZUWU0aT0pNLsJ0kLqAIqgfHwXYXFi7Nwx9B+9Euvbr8wPaGWzFPcyU/NWJWm 527eVoZ0TW90o7mQGK1C/D8++H8aYOaLKx9gDEZgkZNFG+0wc0r/6FAjaKrH+xSlp1Nr ZJyg== X-Gm-Message-State: AOJu0Yyyj+58a0kRF8KQazmIyyN8rCBXNshi04Uf5hU5V6B3YEI0R8S9 7f7qGcsq892mJSRouAeznWWsb6jqpk0= X-Google-Smtp-Source: AGHT+IGSOtM9eBV/ikbW/CZyOCWi3Ic9HhEOd+s9yW0k/bTHIg/ZFvpSdqQJHVmKdovPc8WSwQitHA== X-Received: by 2002:a05:6512:3dac:b0:507:9fa1:ac6e with SMTP id k44-20020a0565123dac00b005079fa1ac6emr620081lfv.10.1697533203071; Tue, 17 Oct 2023 02:00:03 -0700 (PDT) Received: from [1.0.0.7] ([81.23.167.225]) by smtp.gmail.com with ESMTPSA id v11-20020a056512048b00b0050420b0a642sm192866lfq.91.2023.10.17.02.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Oct 2023 02:00:02 -0700 (PDT) Message-ID: Date: Tue, 17 Oct 2023 12:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Assert failure when CREATE TEMP TABLE To: Tom Lane , Richard Guo Cc: pgsql-bugs@postgresql.org References: <2301835.1697471214@sss.pgh.pa.us> Content-Language: en-US From: Alexander Lakhin In-Reply-To: <2301835.1697471214@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 16.10.2023 18:46, Tom Lane wrote: > Richard Guo writes: >> I came across an Assert failure while running sqlancer. The repro query >> is > Hmm. AFAICT, the critical thing about this CHECK condition is simply > that it's bulky enough to create an out-of-line toasted "conbin" field > in pg_constraint. When we come to ON COMMIT DROP, we have to delete > the pg_constraint entry and thereby the toast item, and we evidently > lack a snapshot at that point. That's very similar to bug #18127, and looks like one more case to the collection [1], with RemoveConstraintById() -> CatalogTupleDelete() -> simple_heap_delete() ... https://www.postgresql.org/message-id/9541c507-a325-7768-38b0-90f6532c01e3%40gmail.com Best regards, Alexander