]> git.ipfire.org Git - thirdparty/postgresql.git/commit
amcheck: Support for different header sizes of short varlena datum
authorAlexander Korotkov <akorotkov@postgresql.org>
Sat, 23 Mar 2024 20:59:56 +0000 (22:59 +0200)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sat, 23 Mar 2024 21:03:12 +0000 (23:03 +0200)
commite2c241416515ec9dd711296385ab420e1afc4864
treebc52bd9ef6938cb12a90c7255b788978fd81b16a
parentbf038eb219bb6c7dc8a8de58de3513c035a5efba
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
contrib/amcheck/expected/check_btree.out
contrib/amcheck/sql/check_btree.sql
contrib/amcheck/verify_nbtree.c