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 1lMCaG-0005X8-Fr for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Mar 2021 16:30:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMCaE-0008Rt-UD for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Mar 2021 16:30:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMCaE-0008Rl-3s for pgsql-hackers@lists.postgresql.org; Tue, 16 Mar 2021 16:30:14 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lMCa8-0003Ah-Nr for pgsql-hackers@postgresql.org; Tue, 16 Mar 2021 16:30:12 +0000 Received: by mail-pf1-x433.google.com with SMTP id b23so9169034pfo.8 for ; Tue, 16 Mar 2021 09:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jV20GFG5iW5pB4eZYTeFrM8uHitLAb+iik+LzyRziuc=; b=TLb+O5ZzCh9KkmJqlJAyBULITUx3vouhKoEgKM4PIA9dPvMimb0dcbjKHz2XSayt5y CIvYn6iQNG1ZazEOomu8jE0ljv+cvms/8LTnT7XoM6kv62h4BMhbON7yBY4CFKbfHFSh 22Tc9ks5O8ZczGKbDO9MFWH6DV11ycqhKu9e8W7095hoiJBco67Z+JlyawAnhtwqMafN K5pXjEyFs9A02VvmXRg2+86dqDlA/5a8jTr5gIV3u+YvTeF0JwG0dGtZFt7paR0jy+CJ ZVxMlwjiWoonm4QBSuq8jcZ76AC8jH3OgkMkwvTR8SdMX0jMYR2wC0eUS+lf0DrF6jkB xe8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jV20GFG5iW5pB4eZYTeFrM8uHitLAb+iik+LzyRziuc=; b=CNxyA6rQ0eps1L3FAjXRD4wYjIMXO3RcfCT1J1PUKT/qc+9wLNtfEWLkEF18Wz3278 iAkn7ylcA1X7nETskTFuGg617P3MT8+hW00hAfk3EuCKLYxipynYQeIl5RjErCgCj1xO vV2gEnFD0UsVuEkczVj/GAP/U/U+qBZeTyLy6KC1HjZmA8nR7ITN9cNh2n/Msh84YJUw a4VM8ePKJS+EcoLy3avJIySFIz9zI0sexCafkXh9jSLyoP5wJt+sHLfdVXc2FgiFhop3 HjeCnuWzsCCVBQ7sETyPvhZLGlgdZLuRxNkA4eVeXTdFRIZY+RyXs7jXldbw2kWH/Bn4 9RCg== X-Gm-Message-State: AOAM531rDWK1s22dU34IPVPL8iZITW0nSWpdQbdc2OIwpv1CZbCqLZy6 bSQabTkUufkD0zFIa90Xjk35+x43huHB6KvVoxA4R+FImP6O7lZuZzwaVyNPppYEG5gwskkD+Mg cztUxCNlPkjqqcpbT24jUm4Sp4QCHR9CailUUyPX0kiR/QzxHyNnFUBbg4N4QfTkNyxy9wtdmDS YULXo7CVIkVX4b2G6FWkyUWfLGuGEVNEz3hQbP X-Google-Smtp-Source: ABdhPJwqiYvgKm+b5Fx0VEktopJK0vWuLscTYlkEfe1BSk+FEZZEmHmO4RXO9BezoKtxSAWwCwFNXQ== X-Received: by 2002:aa7:9478:0:b029:1fd:1fc1:bdfe with SMTP id t24-20020aa794780000b02901fd1fc1bdfemr394206pfq.57.1615912207416; Tue, 16 Mar 2021 09:30:07 -0700 (PDT) Received: from laptop280-ma-us.hitronhub.home (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id l4sm16906732pgi.19.2021.03.16.09.30.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Mar 2021 09:30:01 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: pg_amcheck contrib application From: Mark Dilger In-Reply-To: <3254547.1615910855@sss.pgh.pa.us> Date: Tue, 16 Mar 2021 09:30:00 -0700 Cc: Noah Misch , Robert Haas , Peter Geoghegan , Thomas Munro , "Andrey M. Borodin" , Stephen Frost , Michael Paquier , Amul Sul , Dilip Kumar , Andres Freund , PostgreSQL-development Content-Transfer-Encoding: quoted-printable Message-Id: <7CFAF7EF-4EA7-4CB6-B2C7-EC7F4512AE50@enterprisedb.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> <20210316060913.GA3323238@rfd.leadboat.com> <7BCE9084-9381-471F-90F2-FAD99B7FE3DB@enterprisedb.com> <3254547.1615910855@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.120.23.2.1) X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Mar 16, 2021, at 9:07 AM, Tom Lane wrote: >=20 > Mark Dilger writes: >> I think autovacuum simply triggers the bug, and is not the cause of = the bug. If I turn autovacuum off and instead do an ANALYZE in each = test database rather than performing the corruptions, I get reports = about problems in pg_statistic. This is on my mac laptop. This rules = out the theory that autovacuum is propogating corruptions into = pg_statistic, and also the theory that it is architecture dependent. >=20 > I wonder whether amcheck is confused by the declaration of those = columns > as "anyarray". It uses attlen and attalign for the attribute, so that idea does make = sense. It gets that via TupleDescAttr(RelationGetDescr(rel), attnum). =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company