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 1rih9I-00156j-37 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2024 20:49:00 +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 1rih9G-00FhNf-9n for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2024 20:48:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rih9F-00FhMc-VM for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2024 20:48:58 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rih97-003UwF-C8 for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2024 20:48:57 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-33d6f26ff33so1727040f8f.0 for ; Fri, 08 Mar 2024 12:48:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1709930927; x=1710535727; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=937qEcH9pHMBL8hUaOd65pdHz4dJrxvfwSbWuxWuVv4=; b=hyhnxnykgwU6I9KJP1QkcM6aDexqY4erq87XqlY+WB9y0MRljp9jWKNTvBQ8OClrLN 4utAwHkycVsnnGmyU9GrmphB+ueJg6D4wn/WrBCY8P7iTEPp61H7yGVsSIkry//OMKBf yGgsSbLy+QcMT74nzivcUUT6OQPd3JDPMoZxusmsPP5CfentLBEw7PlQH1S93w2wbvl1 cnCJZXdgbOo597qxGkD/HvJBrjEPn63QUseRmnJ692id/3ww9YEmMQ+3KQnU7AyGwvGC EtLCa7mfcJ1qii6ae5ITx0/Zb69+fbPYFvBz4wGFerN03lhp9iE5IAIBlQzRuqTWfzHS U/TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709930927; x=1710535727; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=937qEcH9pHMBL8hUaOd65pdHz4dJrxvfwSbWuxWuVv4=; b=Z2FL1duDLkkDqSijkYdTNewUz0iLOqc5tpI8JkhUrIgryt7qay0493QdelEJXcwRaH far5mZmSg6TD10b63P5mg/QQiXP1CyMmbk35Mr0Uuhb++QaBMR3oTpcNxfECv6tAbkG1 SGMLoe6fdvfb00IQ3QtzRauQsNjVjHL5RqzY6OmVKRgef3vCw4rgi7VZJxDgo1OGjB/J mZN3fR+TbYjmqqLLMrsHnn+DyASCQEaHmexfpE3o6eoArOO1N9PAlNE48LzXz9w++WU/ cqnU6yaKvDtaYmbwHRhxkCE05p6QEbO8Vb7rIipqNDq+0PNBDE/5TYXWdu4+jBqoM4uO S9hw== X-Forwarded-Encrypted: i=1; AJvYcCUoMnAycxvqwKbn6rTm7hGmH8CwCbfuBRNcsYQMpoeYXAQ1NA21LELTBfLcc5A7XIOeyFoNw6NjORPRGgm/lur4oBJeEQ1jPRwKvrS30DUjMck8 X-Gm-Message-State: AOJu0Yy2aQBHvNB+yI85xE4Oclnb2KExWabhnwG0aQhGmfaAYhgSUguB wfjD7OJBt5BPdYdcPr/9JiPv5O9KdbHGawssEsOZsQmu3sJpzks/0ue9fJBUws1U5A/24iCHAlw = X-Google-Smtp-Source: AGHT+IG7POyIxnn1nZbcUZZ+NFqLnF++cVAPzBu8o20FX44r1jeruI5iApR/lH0L/bj5eTxgp4a9DA== X-Received: by 2002:adf:ef84:0:b0:33d:fdc7:d903 with SMTP id d4-20020adfef84000000b0033dfdc7d903mr146329wro.57.1709930926846; Fri, 08 Mar 2024 12:48:46 -0800 (PST) Received: from [10.137.0.18] (ip-86-49-226-7.bb.vodafone.cz. [86.49.226.7]) by smtp.gmail.com with ESMTPSA id d19-20020adfa353000000b0033e7633b163sm297623wrb.22.2024.03.08.12.48.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Mar 2024 12:48:46 -0800 (PST) Message-ID: <05fd672f-2eac-4758-91e9-fa7afafa147e@enterprisedb.com> Date: Fri, 8 Mar 2024 21:48:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Failures in constraints regression test, "read only 0 of 8192 bytes" Content-Language: en-US To: Thomas Munro Cc: Ronan Dunklau , PostgreSQL Hackers , Heikki Linnakangas References: <2185821.Icojqenx9y@aivenlaptop> <5c5a0015-723a-4fa7-85d5-2f0f47b92094@enterprisedb.com> <61ef0b89-1ec6-4d88-afbd-2ffc2c977511@enterprisedb.com> From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/8/24 21:29, Thomas Munro wrote: > On Sat, Mar 9, 2024 at 2:36 AM Tomas Vondra > wrote: >> On 3/8/24 13:21, Tomas Vondra wrote: >>> My guess would be 8af25652489, as it's the only storage-related commit. >>> >>> I'm currently running tests to verify this. >>> >> >> Yup, the breakage starts with this commit. I haven't looked into the >> root cause, or whether the commit maybe just made some pre-existing >> issue easier to hit. Also, I haven't followed the discussion on the >> pgsql-bugs thread [1], maybe there are some interesting findings. > > Adding Heikki. I spent a bit of time investigating this today, but haven't made much progress due to (a) my unfamiliarity with the smgr code in general and the patch in particular, and (b) CLOBBER_CACHE_ALWAYS making it quite time consuming to iterate and experiment. However, the smallest schedule that still reproduces the issue is: ------------------- test: test_setup test: create_aggregate create_function_sql create_cast constraints triggers select inherit typed_table vacuum drop_if_exists updatable_views roleattributes create_am hash_func errors infinite_recurse ------------------- I tried to reduce the second step to just "constraints", but that does not fail. Clearly there's some concurrency at play, and having just a single backend makes that go away. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company