Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2025-06-17 13:46:26 +0000
committerTomas Vondra2025-06-17 13:46:29 +0000
commitcdd1a431f21dbd2b7b675a9db1c24b97d713f38b (patch)
tree4e93783f6fab23b5635050296413b558e3ca69f1 /doc/src/graphics
parent0b54b392334b255abeac7c2718de7071600444ad (diff)
amcheck: Fix parent key check in gin_index_check()HEADmaster
The checks introduced by commit 14ffaece0fb5 did not get the parent key checks quite right, missing some data corruption cases. In particular: * The "rightlink" check was not working as intended, because rightlink is a BlockNumber, and InvalidBlockNumber is 0xFFFFFFFF, so !GinPageGetOpaque(page)->rightlink almost always evaluates to false (except for rightlink=0). So in most cases parenttup was left NULL, preventing any checks against parent. * Use GinGetDownlink() to retrieve child blkno to avoid triggering Assert, same as the core GIN code. Issues reported by Arseniy Mukhin, along with a proposed patch. Review by Andrey M. Borodin, cleanup and improvements by me. Author: Arseniy Mukhin <arseniy.mukhin.dev@gmail.com> Reviewed-by: Andrey M. Borodin <x4mmm@yandex-team.ru> Discussion: https://postgr.es/m/CAE7r3MJ611B9TE=YqBBncewp7-k64VWs+sjk7XF6fJUX77uFBA@mail.gmail.com
Diffstat (limited to 'doc/src/graphics')
0 files changed, 0 insertions, 0 deletions