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: Fix portability issues in pg_amcheck's 004_verify_heapam.pl.
Date: Fri, 12 Mar 2021 22:37:11 +0000
Message-ID: <E1lKqP9-00078B-9P@gemulon.postgresql.org> (raw)

Fix portability issues in pg_amcheck's 004_verify_heapam.pl.

Test #12 overwrote a 1-byte varlena header to make it look like the
initial byte of a 4-byte varlena header, but the results were
endian-dependent. Also, the byte "abc" that followed the overwritten
byte would be interpreted differently depending on endian-ness.
Overwrite 4 bytes instead, in an endian-aware manner.

Test #13 accidentally managed to depend on TOAST_MAX_CHUNK_SIZE,
which varies slightly depending on MAXIMUM_ALIGNOF. That's not
the point anyway, so make the regexp insensitive to the expected
number of chunks.

Mark Dilger

Discussion: http://postgr.es/m/A80D68F6-E38F-482D-9522-E2FB6AAFE8A1@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/661125612706b1d0d5ed9f12d18908b08512a7eb

Modified Files
--------------
src/bin/pg_amcheck/t/004_verify_heapam.pl | 72 ++++++++++++++++++-------------
1 file changed, 42 insertions(+), 30 deletions(-)



Message-ID: <E1lKqP9-00078B-9P@gemulon.postgresql.org>
Permalink:  ../E1lKqP9-00078B-9P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lKqP9-00078B-9P@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: Fix portability issues in pg_amcheck's 004_verify_heapam.pl.
  In-Reply-To: <E1lKqP9-00078B-9P@gemulon.postgresql.org>
  References: <E1lKqP9-00078B-9P@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