amcheck: Refactoring the storage of the last visible entry

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 532d94fec32ac11263b53932365560491d1fd50a
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-05-22T23:11:14Z
Releases: 17.0
amcheck: Refactoring the storage of the last visible entry

This commit introduces a new data structure BtreeLastVisibleEntry comprising
information about the last visible heap entry with the current value of key.
Usage of this data structure allows us to avoid passing all this information
as individual function arguments.

Reported-by: Alexander Korotkov
Discussion: https://www.postgresql.org/message-id/CAPpHfdsVbB9ToriaB1UHuOKwjKxiZmTFQcEF%3DjuzzC_nby31uA%40mail.gmail.com
Author: Pavel Borisov, Alexander Korotkov

Files

PathChange+/−
contrib/amcheck/verify_nbtree.c modified +59 −58
src/tools/pgindent/typedefs.list modified +1 −0

Discussion