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 1mGmdq-0002mX-EI for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Aug 2021 18:19:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mGmdn-0001pP-K5 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Aug 2021 18:19:47 +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 1mGmdn-0001pH-0p for pgsql-hackers@lists.postgresql.org; Thu, 19 Aug 2021 18:19:47 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mGmdf-0004pP-Tr for pgsql-hackers@lists.postgresql.org; Thu, 19 Aug 2021 18:19:45 +0000 Received: by mail-pj1-x102b.google.com with SMTP id oc2-20020a17090b1c0200b00179e56772d6so2058636pjb.4 for ; Thu, 19 Aug 2021 11:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DTPyf65BD5U3UTMemBGh/fLzqfFqstydOmFp6tBbQPE=; b=icbbtGsap2IZbEbdll+4FwJI7Fx3q5f+KkwkLyFbh++fpbHkwhcO0SZrQLyRm9ihzN m/hfV/EVRPFGv2TFtN4GELkyRxEcuVomkZYGj5lQIn8kBFdMPQJ/HvoUgbBhoGWoGmy0 3EqauBF+PA3IePUASQp0wCM9WPSrHm0yt8MiuHFds3QwYYdIy3UuP9/ZOA6WLHc3P6zB hF4gwYpa7yWUgYd3IJsdeWNwLxvpwdXF/a46102mP2IqAPKR9l7UexDTmQKUX8iubsow ASqc/VbcJ8m77FzuF72olWPyybBl+DyBdUPyUyU3E9fnpBUZ0AE9Pk23UxdS3Qy7LC+d hemg== 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=DTPyf65BD5U3UTMemBGh/fLzqfFqstydOmFp6tBbQPE=; b=psIIQ7kvvxsekNLunzBhlyW6cf5xrTe0qM4oyhGDGxnvvK24zKgkX1zreE5zI1ZwAY VHJ/JEWlk1IyORNZcWwjtoyTP7k0hudICUmSyQqEiLSKHstEWGXUyE7Zn/z9vGOScEfa iVyJj4kh+1yT2R7CeWTlcv7DzqWGd5RQR1lQF5IcasREjDvRkySzysTvZYfyvvIaCwMt WYeKsjF6HzOfHnhH8mRSC6tj7cBHQuEHMhbuvgArjDfRf+x5JW4dqGEeN56Wgr9pYI9J zY1qk+nMwhZh0QyEYYYQwvXXzes6wSFpNIU3jMYeX/PNx/kgoz/UNtQ8FVMgntLedSuD w7Ww== X-Gm-Message-State: AOAM532DvHqKYlw4KZk+VwoNc6m+pZfH1DeDt2rzQAtt/TVUpwQSHW/7 EjI15CjifzMzjI5dDVZ4dUQea5iDdEX3z5JdpwqMQJAoysJ93NKoydFF5WjjHqzZLL3BHNsuISe YQUkFFMORUyjJB7NjxyHnZ7NPXkMCvS2efvGiPPhz2TYbDxrxrt4SW1llUDwsz4FEn/gY5t+Rrb +szODNM7sIX+l0Qcza4GySfB6OHpZKIYr8jlBvMESRWvHvxQ0Ere9N X-Google-Smtp-Source: ABdhPJzJqviGMwr0U/lRxXXCGnlDOHONAUL8ZYlASEYqI1vtW3Uw/ZiwLifdroF9Qs0QHQJpAaEHIg== X-Received: by 2002:a17:90a:db89:: with SMTP id h9mr48854pjv.214.1629397177797; Thu, 19 Aug 2021 11:19:37 -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 n15sm4273259pff.149.2021.08.19.11.19.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Aug 2021 11:19:37 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: reporting TID/table with corruption error From: Mark Dilger In-Reply-To: Date: Thu, 19 Aug 2021 11:19:36 -0700 Cc: Andrey Borodin , Alvaro Herrera , Pg Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: <202108191637.oqyzrdtnheir@alvherre.pgsql> <924415DA-A514-4B67-AC66-E3D6C5F13F89@yandex-team.ru> To: Peter Geoghegan X-Mailer: Apple Mail (2.3608.120.23.2.7) 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 Aug 19, 2021, at 10:57 AM, Peter Geoghegan wrote: >=20 > High > verbosity makes a lot of sense here. Works for me. We could create another function, "verify_heapam_full" = perhaps, that returns additional columns matching those from = pageinspect's heap_page_items(): OUT lp smallint, OUT lp_off smallint, OUT lp_flags smallint, OUT lp_len smallint, OUT t_xmin xid, OUT t_xmax xid, OUT t_field3 int4, OUT t_ctid tid, OUT t_infomask2 integer, OUT t_infomask integer, OUT t_hoff smallint, OUT t_bits text, OUT t_oid oid, OUT t_data bytea Should it also return the full page? That would be quite verbose (an = extra 8k per row), but it could be fed into any of pageinspect's = functions for further analysis. =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company