pgsql: amcheck: Fix thinko with check of TOASTed attribute

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: amcheck: Fix thinko with check of TOASTed attribute
Date: 2026-09-15 07:51:31
Message-ID: E1x6Nwx-00000000PBJ-1ekN@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

amcheck: Fix thinko with check of TOASTed attribute

A chunk_id type that does not match with one of the expected values (oid
or oid8) was missing a "return" clause. This caused the code to report
two corruptions instead of one.

Oversight in 6e58d6356fcb.

Discussion: https://postgr.es/m/aqju1K96ex28yz2X@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0d34736e4c1629ba12fd4c848984308f2037998f

Modified Files
--------------
contrib/amcheck/verify_heapam.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2026-09-15 08:46:06 pgsql: doc: Synopsis placeholder consistency
Previous Message Michael Paquier 2026-09-15 06:02:39 pgsql: Add support for external on-disk TOAST pointers as oid8