amcheck: Normalize index tuples containing uncompressed varlena

Alexander Korotkov <akorotkov@postgresql.org>

Commit: b1fe8efdf17eb4877f7c4c31c85111ec740ad872
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-03-23T22:09:24Z
Releases: 17.0
amcheck: Normalize index tuples containing uncompressed varlena

It might happen that the varlena value wasn't compressed by index_form_tuple()
due to current storage parameters.  If compression is currently enabled, we
need to compress such values to match index tuple coming from the heap.

Backpatch to all supported versions.

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

Files

Discussion

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