amcheck: Support for different header sizes of short varlena datum

Alexander Korotkov <akorotkov@postgresql.org>

Commit: a6ddb8ad0ad0947bf86e8cd99c87b156f0956228
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-03-23T21:02:30Z
Releases: 16.3
amcheck: Support for different header sizes of short varlena datum

In the heap, tuples may contain short varlena datum with both 1B header and 4B
headers.  But the corresponding index tuple should always have such varlena's
with 1B headers.  So, for fingerprinting, we need to convert.

Backpatch to all supported versions.

Discussion: https://postgr.es/m/flat/7bdbe559-d61a-4ae4-a6e1-48abdf3024cc%40postgrespro.ru
Author: Michael Zhilin
Reviewed-by: Alexander Lakhin, Andrey Borodin, Jian He, Alexander Korotkov
Backpatch-through: 12

Files

Discussion

Cited messages not in the archive: flat/7bdbe559-d61a-4ae4-a6e1-48abdf3024cc@postgrespro.ru