pgsql: Fix more portability issues in new amcheck code.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix more portability issues in new amcheck code.
Date: 2020-10-23 23:08:07
Message-ID: E1kW6AJ-0004ah-KY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix more portability issues in new amcheck code.

verify_heapam() wasn't being careful to sanity-check tuple line
pointers before using them, resulting in SIGBUS on alignment-picky
architectures. Fix that, add some more test coverage.

Mark Dilger, some tweaking by me

Discussion: https://postgr.es/m/30B8E99A-2D9C-48D4-A55C-741C9D5F1563@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/321633e17b07968e68ca5341429e2c8bbf15c331

Modified Files
--------------
contrib/amcheck/t/001_verify_heapam.pl | 30 ++++++++-----
contrib/amcheck/verify_heapam.c | 78 +++++++++++++++++++++++-----------
2 files changed, 73 insertions(+), 35 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-10-24 01:37:51 pgsql: Add tab completion for ALTER TABLE .. FORCE ROW LEVEL SECURITY i
Previous Message Tom Lane 2020-10-23 21:07:23 pgsql: Allow psql to re-use connection parameters after a connection lo