pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: amcheck: Reword some messages and fix an alignment problem.
Date: Wed, 14 Apr 2021 17:17:28 +0000
Message-ID: <E1lWj8q-0001fV-3c@gemulon.postgresql.org> (raw)

amcheck: Reword some messages and fix an alignment problem.

We don't need to mention the attribute number in these messages, because
there's a dedicated column for that, but we should mention the toast
value ID, because that's really useful for any follow-up troubleshooting
the user wants to do. This also rewords some of the messages to hopefully
read a little better.

Also, use VARATT_EXTERNAL_GET_POINTER in case we're accessing a TOAST
pointer that isn't aligned on a platform that's fussy about alignment,
so that we don't crash while corruption-checking the user's data.

Mark Dilger, reviewed by me.

Discussion: http://postgr.es/m/7D3B9BF6-50D0-4C30-8506-1C1851C7F96F@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9acaf1a62197205b06a85afbfcaa7ffaac939ef3

Modified Files
--------------
contrib/amcheck/verify_heapam.c           | 63 ++++++++++++++++++-------------
src/bin/pg_amcheck/t/004_verify_heapam.pl |  4 +-
2 files changed, 38 insertions(+), 29 deletions(-)



Message-ID: <E1lWj8q-0001fV-3c@gemulon.postgresql.org>
Permalink:  ../E1lWj8q-0001fV-3c@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lWj8q-0001fV-3c@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: amcheck: Reword some messages and fix an alignment problem.
  In-Reply-To: <E1lWj8q-0001fV-3c@gemulon.postgresql.org>
  References: <E1lWj8q-0001fV-3c@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox