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 1lM2tQ-000620-Ch for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Mar 2021 06:09:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lM2tP-0002gD-8q for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Mar 2021 06:09:23 +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 1lM2tO-0002fg-PN for pgsql-hackers@lists.postgresql.org; Tue, 16 Mar 2021 06:09:23 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lM2tL-0006Hu-Rs for pgsql-hackers@postgresql.org; Tue, 16 Mar 2021 06:09:21 +0000 Received: by mail-pj1-x102f.google.com with SMTP id q6-20020a17090a4306b02900c42a012202so855845pjg.5 for ; Mon, 15 Mar 2021 23:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0DNdqxlIwqi8Y3FkbhW+fS8FC50811r0dXIvGV3fSRc=; b=TF91FebCE7N5AMxsFW2wTZs+gwhcqfBAyMta/wjLI59pBjMdpN6ms1sxVICpsOGFpx 7243gNlw9lNG8nvt6PeYHTExRaYJhCjU8/E57CqWGaXyPhE8/SwPgiVvPh/Z1Wbpgy43 672PA1lzfPzijQQUlWyYmEL+dJmv3Mt4KCgZc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0DNdqxlIwqi8Y3FkbhW+fS8FC50811r0dXIvGV3fSRc=; b=fGMuWPPHoE8RKXdfhUnoJpMQGRdpbV6tHv6HiTpKwqKpE70cAPQg4A6B0fEOWJ2XNx TblShTfIgcKMFOUPllL58Cp0lPeNv+cMh9K7ou3kPIUBSE/3K4TtSz3wS8xz9EGkDZ72 lFtpxn6UE/AKOQmDWtiFXXR+H35Tl5Sd/mRL+tW0WhFdGliFpF0dFpp55EpHcmqjIYRP XkUsVt9fsIfVKosiXdnecPAkCorsAkT1wyqJWsxEsYDL+4dkp2cfgM/PidrunCdajtNf CC1AS3plx0QftWSbnCq4wnGrRDml2tQjGEWSbg5jVAjWZ0nr8dM+kL7NMq/ZgXxbIwQW trFw== X-Gm-Message-State: AOAM531rwh/JbUyvYSS+0f+93XQI2OiTtmwKpHN1XzxTd8Z6zqZJN/7T 7KTCHTP+Zi8kuSfF3wAOdeoHrQ== X-Google-Smtp-Source: ABdhPJxxrtPPp5qJyn5qHXuGiKl6Ejk82eHuIlwldx4IVFFettRUGOQPOXOmn/LdC+P32y3bMTrP4w== X-Received: by 2002:a17:902:b589:b029:e6:2875:aa4c with SMTP id a9-20020a170902b589b02900e62875aa4cmr15188485pls.71.1615874957508; Mon, 15 Mar 2021 23:09:17 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::46]) by smtp.gmail.com with ESMTPSA id d24sm1535089pjw.37.2021.03.15.23.09.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Mar 2021 23:09:16 -0700 (PDT) Date: Mon, 15 Mar 2021 23:09:13 -0700 From: Noah Misch To: Tom Lane Cc: Mark Dilger , Robert Haas , Peter Geoghegan , Thomas Munro , "Andrey M. Borodin" , Stephen Frost , Michael Paquier , Amul Sul , Dilip Kumar , Andres Freund , PostgreSQL-development Subject: Re: pg_amcheck contrib application Message-ID: <20210316060913.GA3323238@rfd.leadboat.com> References: <9E76E46A-48B2-4869-BD0C-422204C1F767@enterprisedb.com> <20210313184612.GA3195145@rfd.leadboat.com> <930621E5-5D10-456D-8CE4-CF629A6C4669@enterprisedb.com> <20210313191841.GB3195145@rfd.leadboat.com> <3012106.1615827854@sss.pgh.pa.us> <3053552.1615834640@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3053552.1615834640@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Mar 15, 2021 at 02:57:20PM -0400, Tom Lane wrote: > Mark Dilger writes: > > On Mar 15, 2021, at 10:04 AM, Tom Lane wrote: > >> These animals have somewhat weird alignment properties: MAXALIGN is 8 > >> but ALIGNOF_DOUBLE is only 4. I speculate that that is affecting their > >> choices about whether an out-of-line TOAST value is needed, breaking > >> this test case. That machine also has awful performance for filesystem metadata operations, like open(O_CREAT). Its CPU and read()/write() performance are normal. > > The logic in verify_heapam only looks for a value in the toast table if > > the tuple it gets from the main table (in this case, from pg_statistic) > > has an attribute that claims to be toasted. The error message we're > > seeing that you quoted above simply means that no entry exists in the > > toast table. > > Yeah, that could be phrased better. Do we have a strong enough lock on > the table under examination to be sure that autovacuum couldn't remove > a dead toast entry before we reach it? But this would only be an > issue if we are trying to check validity of toasted fields within > known-dead tuples, which I would argue we shouldn't, since lock or > no lock there's no guarantee the toast entry is still there. > > Not sure that I believe the theory that this is from bad luck of > concurrent autovacuum timing, though. With autovacuum_naptime=1s, on hornet, the failure reproduced twice in twelve runs. With v6-0001-Turning-off-autovacuum-during-corruption-tests.patch applied, 196 runs all succeeded. > The fact that we're seeing > this on just those two animals suggests strongly to me that it's > architecture-correlated, instead. That is possible.